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

CI: no local actions #7166

Merged
merged 4 commits into from
Aug 6, 2024
Merged

CI: no local actions #7166

merged 4 commits into from
Aug 6, 2024

Conversation

sluongng
Copy link
Contributor

@sluongng sluongng commented Aug 6, 2024

This PR attempts to change all the forced-local actions to remote-able actions.
It should improve our Build without the Bytes setup and reduce the amount of artifacts downloaded locally.

After this is applied, we still download a few data from each build:

  • Stderr / stdout of each action (including tests)
  • Directory tree metadata (no blob)

The remaining data could still be significant in some cases, such as a change that invalidates a lot of tests with large logs.
The fix for these most likely will have to come from Bazel upstream.

@sluongng sluongng force-pushed the sluongng/no-local-actions branch from ccb0e4b to c574704 Compare August 6, 2024 11:12
@sluongng sluongng changed the title sluongng/no local actions CI: no local actions Aug 6, 2024
@sluongng sluongng requested review from bduffany and fmeum August 6, 2024 11:16
buildpatches/build_bazel_rules_nodejs.patch Show resolved Hide resolved
buildpatches/build_bazel_rules_nodejs.patch Show resolved Hide resolved
rules/sha/index.bzl Outdated Show resolved Hide resolved
Since we are mostly doing Build without the Bytes, running this action
locally would actually cause downloads to happen and slow down our
build.
@sluongng sluongng force-pushed the sluongng/no-local-actions branch from 23050f9 to 788a3fa Compare August 6, 2024 12:59
@sluongng sluongng marked this pull request as ready for review August 6, 2024 13:02
@sluongng sluongng merged commit 8fe95f1 into master Aug 6, 2024
13 of 14 checks passed
@sluongng sluongng deleted the sluongng/no-local-actions branch August 6, 2024 13:12
sluongng added a commit that referenced this pull request Aug 8, 2024
sluongng added a commit that referenced this pull request Aug 8, 2024
While working on #7166, I discovered that clicking on `local` actions in
the execution log card would crash our UI.

This is because local spawn entry does not have `digest` and thus,
render the entries in the card with `href=/invocation/<uuid>$#action`,
and clicking on it would cause our browser to crash.

Don't render the invalid URL here.
sluongng added a commit that referenced this pull request Aug 8, 2024
While working on #7166, I discovered that clicking on `local` actions in
the execution log card would crash our UI.

This is because local spawn entry does not have `digest` and thus,
render the entries in the card with `href=/invocation/<uuid>$#action`,
and clicking on it would cause our browser to crash.

Don't render the invalid URL here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants