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

Commit 7a9d2b0

Browse files
authored
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
1 parent 4021ec0 commit 7a9d2b0

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.aspect/bazelrc/ci.sourcegraph.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ test --build_event_binary_file_path_conversion=false
5959
test --build_event_binary_file_upload_mode=wait_for_upload_complete
6060
test --build_event_publish_all_actions=true
6161

62+
common --experimental_execution_log_compact_file=execution_log.zstd
63+
6264
# These likely perform faster locally than the overhead of pulling/pushing from/to the remote cache,
6365
# as well as being able to reduce how much we push to the cache
6466
common --modify_execution_info=CopyDirectory=+no-remote,CopyToDirectory=+no-remote,CopyFile=+no-remote

.aspect/workflows/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tasks:
2626
- -//testing/...
2727
artifact_paths:
2828
- build_event_log.bin
29+
- execution_log.zstd
2930
- test:
3031
name: Integration/E2E
3132
targets:
@@ -36,6 +37,7 @@ tasks:
3637
- //testing:codeintel_integration_test
3738
artifact_paths:
3839
- build_event_log.bin
40+
- execution_log.zstd
3941
- delivery:
4042
auto_deliver: true
4143
icon: 'ship'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/bazel-*
66
.bazelrc-nix
77
build_event_log.bin
8+
execution_log.zstd
89

910
# Vim
1011
*.swp

dev/ci/internal/ci/images_operations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func bazelPushImagesCmd(c Config, isCandidate bool, opts ...bk.StepOpt) func(*bk
132132
bk.Env("PROD_REGISTRY", prodRegistry),
133133
bk.Env("ADDITIONAL_PROD_REGISTRIES", additionalProdRegistry),
134134
bk.Cmd(bazelStampedCmd(fmt.Sprintf(`build $$(bazel --bazelrc=%s --bazelrc=.aspect/bazelrc/ci.sourcegraph.bazelrc query 'kind("oci_push rule", //...)')`, bazelRC))),
135-
bk.ArtifactPaths("build_event_log.bin"),
135+
bk.ArtifactPaths("build_event_log.bin", "execution_log.zstd"),
136136
bk.AnnotatedCmd(
137137
"./dev/ci/push_all.sh",
138138
bk.AnnotatedCmdOpts{

0 commit comments

Comments
 (0)