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

Add artifacts method to EngineAware #10344

Merged
merged 1 commit into from Jul 14, 2020

Conversation

gshuflin
Copy link
Contributor

Problem

Rule writers should be able to add arbitrary Digests to workunits associated with an @rule by using the EngineAware mechanism.

Solution

Add a new overridable method artifacts() on EngineAware that returns a Python dict mapping string keys to Digest values, and add the necessary engine infrastructure to insert these Digests into the artifacts section of the corresponding workunit.

Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

@gshuflin gshuflin merged commit 2fd1955 into pantsbuild:master Jul 14, 2020
Eric-Arellano pushed a commit that referenced this pull request Jul 14, 2020
#10341 and #10344 collided, and a test broke on master.
Eric-Arellano pushed a commit to Eric-Arellano/pants that referenced this pull request Jul 15, 2020
### Problem

Rule writers should be able to add arbitrary `Digest`s to workunits associated with an `@rule` by using the `EngineAware` mechanism.

### Solution

Add a new overridable method `artifacts()` on `EngineAware` that returns a Python `dict` mapping string keys to `Digest` values, and add the necessary engine infrastructure to insert these Digests into the `artifacts` section of the corresponding workunit.
Eric-Arellano pushed a commit to Eric-Arellano/pants that referenced this pull request Jul 15, 2020
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.

None yet

2 participants