Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@brianmcarey
Copy link
Member

@brianmcarey brianmcarey commented Oct 22, 2024

What this PR does

Update to bazel v6.5.0[1]

Attempting to build with rules_docker led to issues and as it has been deprecated - we should start using rules_oci[2]

[1] https://github.com/bazelbuild/bazel/releases/tag/6.5.0
[2] https://github.com/bazel-contrib/rules_oci

Fixes #10983

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Special notes for your reviewer

/cc @xpivarc @dhiller

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

build: update to bazel v6.5.0 and rules_oci

@kubevirt-bot kubevirt-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 22, 2024
@kubevirt-bot kubevirt-bot requested a review from dhiller October 22, 2024 14:24
@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot requested a review from xpivarc October 22, 2024 14:24
@kubevirt-bot kubevirt-bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. sig/buildsystem Denotes an issue or PR that relates to changes in the build system. sig/network sig/storage size/XXL release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Oct 22, 2024
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from c6fa5b7 to 16710e2 Compare October 22, 2024 14:35
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build-s390x pull-kubevirt-build-arm64

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 16710e2 to 425c035 Compare October 23, 2024 11:41
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 425c035 to 6f1a3bd Compare October 23, 2024 17:33
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 6f1a3bd to 02e9451 Compare October 24, 2024 14:09
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 02e9451 to 25cb8b4 Compare October 25, 2024 13:24
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute pull-kubevirt-build-arm64 pull-kubevirt-build-s390x

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 25cb8b4 to ce5ef0e Compare October 30, 2024 08:19
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from ce5ef0e to 6874be7 Compare October 30, 2024 08:33
@brianmcarey
Copy link
Member Author

/test pull-kubevirt-build pull-kubevirt-generate pull-kubevirt-unit-test pull-kubevirt-manifests pull-kubevirt-e2e-k8s-1.31-sig-compute

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 1, 2024
@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 6874be7 to 40bb9d7 Compare November 4, 2024 10:02
Includes libguestfs, pr-helper, cloudinit sidecar,
network-passt-binding, network-slirp-binding, smbios,  disk-mutation,
disk-images-provider, vm-killer and winrmcli

Signed-off-by: Brian Carey <[email protected]>
@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 738e117 to 8e6bf28 Compare September 23, 2025 12:08
Images include - virt-api, virt-controller, virt-handler, virt-launcher,
virt-operator, virt-exportserver and virt-exportproxy

Signed-off-by: Brian Carey <[email protected]>
…_push

the variables passed through `bazel run --define` no longer work with
oci_push

Remove these and switch the providing repository and tag details as part
of running the push target.

Signed-off-by: Brian Carey <[email protected]>
A release that is based on
https://github.com/brianmcarey/bazeldnf/tree/test-xattrs which includes
fixes for the xattrs issues

Also update newly introduced images like synchronization-controller to
use rules_oci

Signed-off-by: Brian Carey <[email protected]>
@brianmcarey brianmcarey force-pushed the update-bazel-6.5.0-rules-oci branch from 8e6bf28 to 6952a5b Compare September 23, 2025 12:11
Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you @brianmcarey !

🎉 💯 🥇

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2025
@kubevirt-commenter-bot
Copy link

Required labels detected, running phase 2 presubmits:
/test pull-kubevirt-e2e-k8s-1.31-windows2016
/test pull-kubevirt-e2e-kind-1.33-vgpu
/test pull-kubevirt-e2e-kind-sriov
/test pull-kubevirt-e2e-k8s-1.33-ipv6-sig-network
/test pull-kubevirt-e2e-k8s-1.32-sig-network
/test pull-kubevirt-e2e-k8s-1.32-sig-storage
/test pull-kubevirt-e2e-k8s-1.32-sig-compute
/test pull-kubevirt-e2e-k8s-1.32-sig-operator
/test pull-kubevirt-e2e-k8s-1.33-sig-network
/test pull-kubevirt-e2e-k8s-1.33-sig-storage
/test pull-kubevirt-e2e-k8s-1.33-sig-compute
/test pull-kubevirt-e2e-k8s-1.33-sig-operator

@kubevirt-bot
Copy link
Contributor

kubevirt-bot commented Sep 23, 2025

@brianmcarey: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubevirt-e2e-k8s-1.31-sig-compute cbf8e20 link true /test pull-kubevirt-e2e-k8s-1.31-sig-compute
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@xpivarc
Copy link
Member

xpivarc commented Sep 23, 2025

/hold cancel
Thanks!!!

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 23, 2025
@kubevirt-bot kubevirt-bot merged commit 0a5c8ed into kubevirt:main Sep 23, 2025
44 checks passed
@nunnatsa
Copy link
Contributor

@brianmcarey hi

This PR breaks the HCO nightly test, but this is just an indication for bigger issue.

These two images are used by HCO, when generating the CSV. They can't be found now:

  • quay.io/kubevirt/virtio-container-disk
  • quay.io/kubevirt/virt-synchronization-controller

@akalenyu
Copy link
Contributor

@brianmcarey hi

This PR breaks the HCO nightly test, but this is just an indication for bigger issue.

These two images are used by HCO, when generating the CSV. They can't be found now:

  • quay.io/kubevirt/virtio-container-disk
  • quay.io/kubevirt/virt-synchronization-controller

I have a PR up for quay.io/kubevirt/virt-synchronization-controller - #15771
But I think something else is broken about virtio-container-disk and others, since their push is not attempted - https://storage.googleapis.com/kubevirt-prow/logs/periodic-kubevirt-push-nightly-build-main/1972104548168241152/build-log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/handler area/launcher area/operator dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/buildsystem Denotes an issue or PR that relates to changes in the build system. sig/compute sig/network sig/storage size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: Remove deprecated rules_docker from bazel build of container images

8 participants