Skip to content

Conversation

@AkarshSahlot
Copy link

Logic for caching prior is:
Choose a completely new entry in the cache only if:
The build is taking place on the primary branch,
Build duration is more than 3 minutes (env.duration > 180),
The step is executed self-sufficiently (always()).
The updated version improved the cache by:
Efficient use of bazel-disk caching to improve performance.
Broadening the restore-keys to increase the possibility of cache hits.
Performing simultaneous builds to reduce the total build time.
overall speedup bazel CI builds

Signed-off-by: Akarsh Sahlot <[email protected]>
Copy link
Member

@smolkaj smolkaj left a comment

Choose a reason for hiding this comment

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

Why are we adding a LICENSE file and a dubious README..md file to the workflows folder?

deleted unnecessary files

Signed-off-by: Akarsh Sahlot <[email protected]>
deleted unnecesaary file

Signed-off-by: Akarsh Sahlot <[email protected]>
deleted unnecessary file

Signed-off-by: Akarsh Sahlot <[email protected]>
@jafingerhut
Copy link
Contributor

Why are we adding a LICENSE file and a dubious README..md file to the workflows folder?

If I understand correctly, the LICENSE and README.md file might be from a software package that helps one run Github Actions workflows on a local development system. If so, I agree that they should be removed from this PR, leaving only the modified ci-build-proto.yml file (which I have not attempted to understand or review the changes proposed here).

deleted read me file

Signed-off-by: Akarsh Sahlot <[email protected]>
@AkarshSahlot
Copy link
Author

Why are we adding a LICENSE file and a dubious README..md file to the workflows folder?

If I understand correctly, the LICENSE and README.md file might be from a software package that helps one run Github Actions workflows on a local development system. If so, I agree that they should be removed from this PR, leaving only the modified ci-build-proto.yml file (which I have not attempted to understand or review the changes proposed here).
I have deleted all unnecessary files including act, license and readme.

strategy:
matrix:
# We only test on the oldest version we want to support and latest.
# We trust that things also work for versions in the middle.
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing these comments seems like the wrong thing to do, unless you know that they are obsolete or wrong. If they are correct, they were written by someone who wanted to remember the reason that the lines of code were added, and why they were written in this way. That is valuable information, and should not be discarded.

Copy link
Author

Choose a reason for hiding this comment

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

Ok I will add them back

Copy link
Contributor

Choose a reason for hiding this comment

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

There are many more such comments removed elsewhere in your PR. My comment applies to all of those changes, not only the ones that I directly commented on.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please, please look at the diffs of your PR on the Github web site to see if it is what you think it should be. Without doing that, you might be proposing changes in the PR that you forgot you made, or never even intended to make.

Copy link
Author

Choose a reason for hiding this comment

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

ok I will add back all those changes in comments

added back uncommented part

Signed-off-by: Akarsh Sahlot <[email protected]>
@smolkaj
Copy link
Member

smolkaj commented Apr 11, 2025

@AkarshSahlot thanks for looking into improving cache performance! Fast CI builds are super useful to allow quickly operating on PRs when they don't build the first time around.

From what I understand, the main improvement here is to enable Bazel disk caching?

A few questions:

@chrispsommers
Copy link
Collaborator

@AkarshSahlot bump?

@smolkaj
Copy link
Member

smolkaj commented Jun 13, 2025

Closing this PR since it currently seems to be stale.
Please don't hesitate to reopen if you'd like to push this over the finish line, @AkarshSahlot.

@smolkaj smolkaj closed this Jun 13, 2025
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.

4 participants