Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploader,feature-announce,support-matrix: run jobs with go #3842

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ periodics:
- -ce
- |
make bump-images
git-pr.sh -c "cd ../project-infra && bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ${PWD} -s 'Automated run of make bump-images and //robots/cmd/uploader:uploader' -b bump-images -r kubevirt -L release-note-none -T main
git-pr.sh -c "cd ../project-infra && go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ${PWD} -s 'Automated run of make bump-images and ./robots/cmd/uploader:uploader' -b bump-images -r kubevirt -L release-note-none -T main
command:
- /bin/sh
image: quay.io/kubevirtci/pr-creator:v20240913-6773146
Expand Down Expand Up @@ -1700,16 +1700,7 @@ periodics:
preset-github-credentials: "true"
spec:
containers:
- image: quay.io/kubevirtci/bootstrap:v20241213-57bd934
env:
- name: GIT_AUTHOR_NAME
value: kubevirt-bot
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_REPO_URL
value: https://[email protected]/kubevirt/sig-release.git
command: [ "/bin/sh", "-ce" ]
args:
- args:
- |
set -x
project_infra_dir=$(cd ../project-infra && pwd)
Expand All @@ -1723,7 +1714,7 @@ periodics:
)
sig_release_dir=$(cd ../sig-release && pwd)
cd ${project_infra_dir}
bazelisk run //releng/feature-announce -- \
go run ./releng/feature-announce \
--log-level=5 \
--output-file=${sig_release_dir}/upcoming-changes.md \
--org kubevirt \
Expand All @@ -1736,8 +1727,20 @@ periodics:
echo "Nothing changed" >&2
exit 0
fi
git commit --signoff -m "robot //releng/feature-announce: update list of notable changes for next KubeVirt release"
git commit --signoff -m "robot ./releng/feature-announce: update list of notable changes for next KubeVirt release"
git push ${GIT_REPO_URL} HEAD:main
command:
- /usr/local/bin/runner.sh
- /bin/bash
- -ce
env:
- name: GIT_AUTHOR_NAME
value: kubevirt-bot
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_REPO_URL
value: https://[email protected]/kubevirt/sig-release.git
image: quay.io/kubevirtci/golang:v20241213-57bd934
resources:
requests:
memory: "200Mi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,21 +267,34 @@ postsubmits:
- org: kubevirt
repo: project-infra
base_ref: main
workdir: true
- org: kubevirt
repo: sig-release
base_ref: main
labels:
preset-github-credentials: "true"
spec:
containers:
- image: quay.io/kubevirtci/pr-creator:v20240913-6773146
env:
command: [ "/bin/sh", "-ce" ]
args:
- args:
- |
project_infra_dir=$(cd ../project-infra && pwd)
sig_release_dir=$(cd ../sig-release && pwd)
git-pr.sh -c "cd ../project-infra && bazelisk run //robots/cmd/kubevirt -- get support-matrix --output-file=${sig_release_dir}/releases/k8s-support-matrix.md --overwrite-output-file --job-config-path=${project_infra_dir}/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt" -p ${sig_release_dir} -s 'Automated run of //robots/cmd/kubevirt get support-matrix' -r sig-release -b update-support-matrix -T main
go run ./robots/cmd/kubevirt get support-matrix \
--output-file=/tmp/k8s-support-matrix.md \
--job-config-path=${project_infra_dir}/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt \
--overwrite-output-file
git-pr.sh \
-c "mv /tmp/k8s-support-matrix.md ${sig_release_dir}/releases/k8s-support-matrix.md" \
-p ${sig_release_dir} \
-s 'Automated run of //robots/cmd/kubevirt get support-matrix' \
-r sig-release \
-b update-support-matrix \
-T main
command:
- /usr/local/bin/runner.sh
- /bin/bash
- -ce
image: quay.io/kubevirtci/pr-creator:v20240913-6773146
resources:
requests:
memory: "200Mi"
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,14 @@ periodics:
securityContext:
runAsUser: 0
containers:
- image: quay.io/kubevirt/builder:2212180911-8818abcfa
- image: quay.io/kubevirtci/pr-creator:v20240913-6773146
command: ["/bin/sh"]
args:
- "-c"
- bazel_dir=$(mktemp -d) &&
curl --fail -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64 --output ${bazel_dir}/bazelisk &&
chmod a+x ${bazel_dir}/bazelisk &&
export PATH=${PATH}:${bazel_dir} &&
hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ../kubevirt -r kubevirt -L lgtm,approved,release-note-none -T main &&
hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/../containerized-data-importer/WORKSPACE -dry-run=false" -p ../containerized-data-importer -r containerized-data-importer -T main -L lgtm,approved,release-note-none
hack/git-pr.sh -c "bazelisk run //robots/cmd/uploader:uploader -- -workspace ${PWD}/WORKSPACE -dry-run=false" -p ${PWD} -r project-infra -T main -L lgtm,approved,release-note-none
- -ce
- |
git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../kubevirt/WORKSPACE -dry-run=false" -p ../kubevirt -r kubevirt -L lgtm,approved,release-note-none -T main
git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/../containerized-data-importer/WORKSPACE -dry-run=false" -p ../containerized-data-importer -r containerized-data-importer -T main -L lgtm,approved,release-note-none
git-pr.sh -c "go run ./robots/cmd/uploader:uploader -workspace ${PWD}/WORKSPACE -dry-run=false" -p ${PWD} -r project-infra -T main -L lgtm,approved,release-note-none
resources:
requests:
memory: "200Mi"
Expand Down