Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Nov 28, 2022

It doesn't make sense to run this for non-PRs, because:

  • There are known whitespace "violations" in previous commits, so the lint may fail
  • Once the changes are merged, it is too late to fix them up (force pushes are illegal)
  • It isn't possible to determine which commits to run on if there is no reference branch (target branch of the pull request)

Moreover, the test fails on non-master:

Fix all issues by skipping it.

@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 28, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hebasto

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@hebasto
Copy link
Member

hebasto commented Nov 28, 2022

Concept ACK. Thank you for taking this up!

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK fad1c55, also tested in my personal Cirrus account.

Comment on lines +12 to +14
echo
git log --no-merges --oneline "$COMMIT_RANGE"
echo
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if moving git log --no-merges --oneline "$COMMIT_RANGE" up is an improvement. At least for me, it is very convenient to look at the list of commits at the end of the log.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is there even any value in keeping it. Now that it only runs on PRs, it should be only be needed for rare debugging of CI infrastructure bugs? In the normal case it will just be equal to the list of commits that GitHub displays, no?

Copy link
Member

Choose a reason for hiding this comment

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

In the normal case it will just be equal to the list of commits that GitHub displays, no?

Exactly. That is why I check it out to ensure that it is normal :)

Anyway, I'm OK with the current state of this PR.

@hebasto
Copy link
Member

hebasto commented Nov 28, 2022

Should this PR be backported to release branches?

@maflcko maflcko changed the title lint: Skip COMMIT_RANGE if no CIRRUS_PR ci: Skip COMMIT_RANGE if no CIRRUS_PR Nov 28, 2022
@DrahtBot DrahtBot added the Tests label Nov 28, 2022
@maflcko maflcko merged commit d415b72 into bitcoin:master Nov 28, 2022
maflcko pushed a commit that referenced this pull request Nov 28, 2022
fad1c55 lint: Skip COMMIT_RANGE if no CIRRUS_PR (MarcoFalke)

Pull request description:

  Identical commit from #26588

  Untested, but this may fix the red-ness in https://cirrus-ci.com/github/bitcoin/bitcoin/24.x, e.g. https://cirrus-ci.com/task/4697153604419584:

  Backport requested in #26588 (comment)

ACKs for top commit:
  hebasto:
    ACK fad1c55, the same commit as in #26588.

Tree-SHA512: 8d8a735e25bc1f774f8cbf058b95b7019941138ab78fb7819852755c7a416a783ee116457b97031d447639002353d7bf12ee8445275b7b5eec4abc7421cc171d
@maflcko maflcko deleted the 2211-ci-skip-🗯 branch November 28, 2022 16:28
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 1, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants