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

Preserve analysis cache through --test_env changes #24398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Nov 19, 2024

Fixes #7450

RELNOTES[INC]: Changing --test_env no longer invalidates the analysis cache. ctx.configuration.test_env may be empty for non-test rules and should not be used by such rules.

@fmeum fmeum requested review from a team as code owners November 19, 2024 18:53
@fmeum fmeum requested review from aranguyen and katre and removed request for a team and aranguyen November 19, 2024 18:53
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Nov 19, 2024
@fmeum
Copy link
Collaborator Author

fmeum commented Dec 4, 2024

@katre Friendly ping

@katre
Copy link
Member

katre commented Dec 4, 2024

Thanks for the reminder.

I cleaned up the breakages internally, I'm going to import this and test it. I'll report back.

@katre katre removed the awaiting-review PR is awaiting review from an assigned reviewer label Dec 4, 2024
@katre
Copy link
Member

katre commented Dec 6, 2024

Okay, argh, it turns out that I did bot clean up the internal breakages: while Bazel enables --incompatible_enforce_config_setting_visibility, it turns out that Blaze does not, precisely due to issues like this.

I'm working with the owners of the one blocking target to clean it up. Sorry for even further delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions team-Remote-Exec Issues and PRs for the Execution (Remote) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--test_env (and some other test flags) should not discard analysis cache with --trim_test_configuration
2 participants