Skip to content

Conversation

@rousskov
Copy link
Contributor

Possible unintended interpolation of @users in string
Bareword "true" not allowed
Bareword "false" not allowed
Execution of ... aborted due to compilation errors

Recent commit daa76f4 broke scripts/update-contributors.pl syntax (see
error messages quoted above) and its lower-case comparison logic,
effectively disabling CONTRIBUTORS checks.

Also do not hide update-contributors.pl execution failures. Buggy
failure detection contributed to the above problems ignored by CI tests.

Test Only and others added 2 commits July 21, 2025 12:10
    Possible unintended interpolation of @users in string
    Bareword "true" not allowed
    Bareword "false" not allowed
    Execution of ... aborted due to compilation errors

Recent commit daa76f4 broke scripts/update-contributors.pl syntax (see
error messages quoted above) and lower-case comparison logic,
effectively disabling CONTRIBUTORS checks.
An `if` statement with a false condition and without an `else` clause
always succeeds, setting `$?` to 0 (including cases when the condition
command itself fails to execute).
@rousskov
Copy link
Contributor Author

rousskov commented Jul 21, 2025

I did not have a chance to review #2109. The problem was discovered by @eduard-bagdasaryan while working on an unrelated improvement. I am asking him to review this PR.

Some of the problems fixed in this PR can be seen in recent PRs: CI logs show errors despite overall successful source-maintenance checks.

@rousskov rousskov added the S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box label Jul 21, 2025
@yadij
Copy link
Contributor

yadij commented Jul 21, 2025

LGTM

Copy link
Contributor

@kinkie kinkie left a comment

Choose a reason for hiding this comment

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

thanks for fixing this

squid-anubis pushed a commit that referenced this pull request Jul 21, 2025
    Possible unintended interpolation of @users in string
    Bareword "true" not allowed
    Bareword "false" not allowed
    Execution of ... aborted due to compilation errors

Recent commit daa76f4 broke scripts/update-contributors.pl syntax (see
error messages quoted above) and its lower-case comparison logic,
effectively disabling CONTRIBUTORS checks.

Also do not hide update-contributors.pl execution failures. Buggy
failure detection contributed to the above problems ignored by CI tests.
@squid-anubis squid-anubis added the M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels label Jul 21, 2025
result=$?
./scripts/update-contributors.pl --quiet < authors.tmp > CONTRIBUTORS.new || return
updateIfChanged CONTRIBUTORS CONTRIBUTORS.new \
"A human PR description should match: $vettedCommitPhraseRegex" || return
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to delete authors.tmp if updateIfChanged() fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't we need to delete authors.tmp if updateIfChanged() fails?

In the ideal world, probably yes. In that ideal world, such cleanup would be controlled by a configuration option that would allow folks to leave temporary files for failure triage.

In reality, the benefits from removing authors.tmp when git, update-contributors.pl, or updateIfChanged() fails are not worth the effort required to guarantee and control that removal. And the harm is relatively small because these temporary files are not going to accumulate across failures.

@squid-anubis squid-anubis added M-passed-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels and removed M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels labels Jul 21, 2025
@rousskov rousskov added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels and removed S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box labels Jul 22, 2025
@squid-anubis squid-anubis added M-merged https://github.com/measurement-factory/anubis#pull-request-labels and removed M-passed-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels labels Jul 22, 2025
@yadij yadij added the backport-to-v7 maintainer has approved these changes for v7 backporting label Jan 16, 2026
squidadm pushed a commit to squidadm/squid that referenced this pull request Jan 17, 2026
…e#2125)

    Possible unintended interpolation of @users in string
    Bareword "true" not allowed
    Bareword "false" not allowed
    Execution of ... aborted due to compilation errors

Recent commit daa76f4 broke scripts/update-contributors.pl syntax (see
error messages quoted above) and its lower-case comparison logic,
effectively disabling CONTRIBUTORS checks.

Also do not hide update-contributors.pl execution failures. Buggy
failure detection contributed to the above problems ignored by CI tests.
@squidadm squidadm removed the backport-to-v7 maintainer has approved these changes for v7 backporting label Jan 17, 2026
@squidadm
Copy link
Collaborator

queued for backport to v7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M-merged https://github.com/measurement-factory/anubis#pull-request-labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants