Skip to content

Fix exec_properties for py_test #529

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

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

Conversation

keith
Copy link
Contributor

@keith keith commented Feb 13, 2025

Fixes #461

Copy link

aspect-workflows bot commented Feb 13, 2025

Test

1 test target passed

Targets
//examples/pytest:pytest_test [k8-fastbuild]                 1s

Total test execution time was 1s. 29 tests (96.7%) were fully cached saving 1m 10s.

@@ -60,13 +60,17 @@ py_image_layer = _py_image_layer
resolutions = _resolutions

def _py_binary_or_test(name, rule, srcs, main, deps = [], resolutions = {}, **kwargs):
exec_properties = kwargs.pop("exec_properties", {})
non_test_exec_properties = {k: v for k, v in exec_properties.items() if not k.startswith("test.")}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

clearly not ideal, im not sure forwarding everything is really the right move below, technically the new exec_group_compatible_with attr also would have this issue.

@keith keith force-pushed the ks/fix-exec_properties-for-py_test branch from a84071f to ade07c2 Compare March 20, 2025 20:29
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.

[Bug]: Tried to set properties for non-existent exec groups: test.
1 participant