Skip to content

Better specify linting comparison files#18

Merged
andrewmogan merged 3 commits intodevelopfrom
amogan/fix_linting_comparison
Apr 14, 2026
Merged

Better specify linting comparison files#18
andrewmogan merged 3 commits intodevelopfrom
amogan/fix_linting_comparison

Conversation

@andrewmogan
Copy link
Copy Markdown
Contributor

In DUNE-DAQ/dfmodules#485, Kurt noticed that the linting comparison check was failing despite only integration test files being changed. I learned that this was because of greedy wildcard expansion in the find command which sets the file names for comparison. This wasn't caught in testing because I didn't test a case where multiple correlated PRs are built together, meaning find was finding multiple linting log files. The solution is to simply use the $REPO environment variable (now moved to workflow-level scope) when finding log files.

Initial failed run here
Successful run using this branch here

Using wilcard expansion *_linting.log causes multiple files to be
specified when this workflow is triggered by a PR that is part of
correlated PRs across repos. Using $REPO_linting.log should avoid this.
@jcfreeman2
Copy link
Copy Markdown
Contributor

Approved. Just from looking at the example Actions, where you see how kbiery/integtest_verbosity_level_ideas is found both in hsilibs and dfmodules, it's clearly undesirable for hsilibs linting output to be considered a delta wrt to the dfmodules linting process.

@andrewmogan andrewmogan merged commit ba37187 into develop Apr 14, 2026
@andrewmogan andrewmogan deleted the amogan/fix_linting_comparison branch April 14, 2026 21:30
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.

2 participants