-
Notifications
You must be signed in to change notification settings - Fork 21
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
.github/workflows: don't lint releases #805
Conversation
Linting a release branch makes little sense. And the action being used in the `lint.yaml` workflow relies on obtaining a list of changed files since the base commit. This action seems to presume this will be used for pull requests, or tags that are on the same branch as `main`. Once we do a release branch and a release tag, the action is unable to figure out how to calculate the diff in versions, and we end up with unnecessary failures. Signed-off-by: Joao Eduardo Luis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there will be release notes and changes to the .readthedocs.yaml
and other small things here and there, I think it would be a good thing to keep some of the linters, e.g. codespell, detect-private-key, debug-statements etc. I've never had an issue with this workflow, so I think it's easiest to just keep it as-is. But if you're having issues with a particular linter, we can also split this workflow up and separate that linter out in its own workflow and only run the good ones on the release branches.
I find that linting those things outside the scope of the And I don't disagree with checking for those things, in principle, but let's do it where it actually matters, and in a way that actually works.
This linter workflow changed a few days ago, it's no longer the same workflow. It relies on an action that fails to resolve the diff in versions when we create the release branch + tag. See failure with debug here: https://github.com/aquarist-labs/s3gw/actions/runs/6921355570/job/18826896212#step:4:481 |
Unforeseen consequences :(. |
And I think that makes sense. I just don't think running this check, standalone, against the release branches/tags make sense 🤷 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Linting a release branch makes little sense.
And the action being used in the
lint.yaml
workflow relies on obtaining a list of changed files since the base commit. This action seems to presume this will be used for pull requests, or tags that are on the same branch asmain
. Once we do a release branch and a release tag, the action is unable to figure out how to calculate the diff in versions, and we end up with unnecessary failures.Signed-off-by: Joao Eduardo Luis <[email protected]>