You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW if you are running verifications on changes to the GitHub workflow, I think you could change the PR to a Draft state so that it can't be approved and merged. From when I did that for checking flaky tests in CI, you can still run GitHub workflows on a draft PR.
BTW if you are running verifications on changes to the GitHub workflow, I think you could change the PR to a Draft state so that it can't be approved and merged. From when I did that for checking flaky tests in CI, you can still run GitHub workflows on a draft PR.
Nice tips though. Forgot that we could release a draft PR instead of filing one.
khanhntd
changed the title
delete runner cache and test cache if success
Delete runner cache and test cache if success
Jan 31, 2022
Overall, I don't think you can skip building based on a cache hit. the only thing we are caching is the output of the testing and the dependencies. If code changes, it doesn't look like a new build/test will be triggered.
Overall, I don't think you can skip building based on a cache hit. the only thing we are caching is the output of the testing and the dependencies. If code changes, it doesn't look like a new build/test will be triggered.
It only works when retrying the workflow instead of making a new commits. That's why we use github.run_id that would be unique between commits but will be the same when retrying the workflow. Therefore, if the code chanes, the build/test will still be triggered
Ok, i see that now, which brings up another issue. This means that you're only caching for the run, removing the original value of cache, which was to cache dependent packages and successful test runs so they didn't have to be downloaded again and the test didn't have to run again of no changes were made.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the issue
Currently, there are two issues with time we got with:
Description of changes
By changing these two,
runner/Library/Caches/go-buildwhen cache to reduce the time (testing it out with the PR)License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Test with a PR and found unexpected results without caching this path
runner/Library/Caches/go-build:https://github.com/aws/amazon-cloudwatch-agent/runs/4990690788?check_suite_focus=true
https://github.com/aws/amazon-cloudwatch-agent/runs/4990745483?check_suite_focus=true
Compared when cached this path
runner/Library/Caches/go-build:https://github.com/aws/amazon-cloudwatch-agent/runs/4990443776?check_suite_focus=true