Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

refactor: upgrade to rules_oci 2.0 (2nd attempt)#63829

Merged
Strum355 merged 4 commits into
mainfrom
aspect_rules_oci_2_retry
Aug 7, 2024
Merged

refactor: upgrade to rules_oci 2.0 (2nd attempt)#63829
Strum355 merged 4 commits into
mainfrom
aspect_rules_oci_2_retry

Conversation

@gregmagolan

@gregmagolan gregmagolan commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

2nd attempt of #63111, a follow up https://github.com/sourcegraph/sourcegraph/pull/63085

rules_oci 2.0 brings a lot of performance improvement around oci_image and oci_pull, which will benefit Sourcegraph. It will also make RBE faster and have less load on remote cache.

However, 2.0 makes some breaking changes like

  • oci_tarball's default output is no longer a tarball
  • oci_image no longer compresses layers that are uncompressed, somebody
    has to make sure all pkg_tar targets have a compression attribute
    set to compress it beforehand.
  • there is no curl fallback, but this is fine for sourcegraph as it
    already uses bazel 7.1.

I checked all targets that use oci_tarball as much as i could to make sure nothing depends on the default tarball output of oci_tarball. there was one target which used the default output which i put a TODO for somebody else (somebody who is more on top of the repo) to tackle later.

Test plan

CI. Also run delivery on this PR (don't land those changes)

@cla-bot cla-bot Bot added the cla-signed label Jul 15, 2024
@gregmagolan gregmagolan marked this pull request as draft July 15, 2024 17:53
@gregmagolan gregmagolan force-pushed the aspect_rules_oci_2_retry branch 2 times, most recently from 734d117 to 90eab15 Compare July 15, 2024 18:56
@gregmagolan gregmagolan force-pushed the aspect_rules_oci_2_retry branch from 90eab15 to 83bf3fa Compare July 26, 2024 19:26
@Strum355 Strum355 force-pushed the aspect_rules_oci_2_retry branch from 83bf3fa to 7abe3a9 Compare August 7, 2024 13:39
@Strum355 Strum355 marked this pull request as ready for review August 7, 2024 20:44
@Strum355 Strum355 merged commit be015c5 into main Aug 7, 2024
@Strum355 Strum355 deleted the aspect_rules_oci_2_retry branch August 7, 2024 21:21
Strum355 added a commit that referenced this pull request Aug 7, 2024
Strum355 referenced this pull request Aug 7, 2024
Reverts sourcegraph/sourcegraph#63829

Not working with Aspect Delivery

## Test plan

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants