chore(ci): emit compact executon log in CI (#63420)

Second attempt at https://github.com/sourcegraph/sourcegraph/pull/61760,
we can start using these to dig into action cache misses etc

## Test plan

CI passes green


## Changelog
This commit is contained in:
Noah S-C 2024-06-21 19:50:35 +01:00 committed by GitHub
parent 4021ec0aec
commit 7a9d2b02e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View File

@ -59,6 +59,8 @@ test --build_event_binary_file_path_conversion=false
test --build_event_binary_file_upload_mode=wait_for_upload_complete
test --build_event_publish_all_actions=true
common --experimental_execution_log_compact_file=execution_log.zstd
# These likely perform faster locally than the overhead of pulling/pushing from/to the remote cache,
# as well as being able to reduce how much we push to the cache
common --modify_execution_info=CopyDirectory=+no-remote,CopyToDirectory=+no-remote,CopyFile=+no-remote

View File

@ -26,6 +26,7 @@ tasks:
- -//testing/...
artifact_paths:
- build_event_log.bin
- execution_log.zstd
- test:
name: Integration/E2E
targets:
@ -36,6 +37,7 @@ tasks:
- //testing:codeintel_integration_test
artifact_paths:
- build_event_log.bin
- execution_log.zstd
- delivery:
auto_deliver: true
icon: 'ship'

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
/bazel-*
.bazelrc-nix
build_event_log.bin
execution_log.zstd
# Vim
*.swp

View File

@ -132,7 +132,7 @@ func bazelPushImagesCmd(c Config, isCandidate bool, opts ...bk.StepOpt) func(*bk
bk.Env("PROD_REGISTRY", prodRegistry),
bk.Env("ADDITIONAL_PROD_REGISTRIES", additionalProdRegistry),
bk.Cmd(bazelStampedCmd(fmt.Sprintf(`build $$(bazel --bazelrc=%s --bazelrc=.aspect/bazelrc/ci.sourcegraph.bazelrc query 'kind("oci_push rule", //...)')`, bazelRC))),
bk.ArtifactPaths("build_event_log.bin"),
bk.ArtifactPaths("build_event_log.bin", "execution_log.zstd"),
bk.AnnotatedCmd(
"./dev/ci/push_all.sh",
bk.AnnotatedCmdOpts{