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

fix: pass in base + head revisions when computing files_changed #494

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

ahal
Copy link
Collaborator

@ahal ahal commented Apr 24, 2024

No description provided.

@ahal ahal requested a review from a team April 24, 2024 16:15
@ahal ahal self-assigned this Apr 24, 2024
@ahal ahal requested a review from jcristau April 24, 2024 16:15
@ahal ahal added the bug Something isn't working label Apr 24, 2024
@@ -185,7 +185,9 @@ def get_decision_parameters(graph_config, options):

# Define default filter list, as most configurations shouldn't need
# custom filters.
parameters["files_changed"] = repo.get_changed_files("AM")
parameters["files_changed"] = repo.get_changed_files(
Copy link
Contributor

Choose a reason for hiding this comment

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

To be clear: we need rev/base_rev because otherwise we default to the previous revision? (And something else for hg...)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, also this is what the files_changed.py module was doing before my refactor.. I just totally missed the difference

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh and technically we were in the top half of that conditional, so we were detecting the base_rev automatically. The detection works great for pushes, but not for pull requests.

@ahal ahal merged commit b69752a into taskcluster:main Apr 24, 2024
11 checks passed
@ahal ahal deleted the fix_files_changed branch April 24, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants