Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jul 19, 2023

Requested in #28083 (review).

Also, one doc commit.

MarcoFalke added 2 commits July 19, 2023 11:27
(Similar to the doc comment in ci/lint_imagefile)

Also, rename docker-entrypoint.sh to container-entrypoint.sh

Also, add copyright header to touched files.
This is needed for the container-entrypoint.sh

Also, remove unused `source` from ci/lint_run_all.sh, since it is the
last step.
@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 19, 2023

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 fanquake, jamesob

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

@DrahtBot DrahtBot changed the title lint: Add missing set -ex to ci/lint/06_script.sh lint: Add missing set -ex to ci/lint/06_script.sh Jul 19, 2023
@maflcko maflcko changed the title lint: Add missing set -ex to ci/lint/06_script.sh test: Add missing set -ex to ci/lint/06_script.sh Jul 19, 2023
@DrahtBot DrahtBot added the Tests label Jul 19, 2023
@fanquake fanquake requested a review from jamesob July 19, 2023 10:02
Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

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

ACK ffff4b5


export LC_ALL=C

set -ex
Copy link
Contributor

Choose a reason for hiding this comment

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

Only downside with this is that CI won't report all lint failures, rather will bail on the first one. Not sure if this is going to be annoying for people. Maybe we could have a FAIL_FAST envvar that gates this, and right now is only enabled in the container entrypoint script?

Copy link
Member Author

Choose a reason for hiding this comment

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

A fail-fast setting would also need to be picked up by lint-all to abort early, because this one does collect the failures.

But I won't be working on that soon, so should I just close this pull?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nah, this is a step in the right direction I think.

Copy link
Contributor

@jamesob jamesob left a comment

Choose a reason for hiding this comment

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

ACK ffff4b5 (jamesob/ackr/28103.1.MarcoFalke.test_add_missing_set_ex)

Tested locally; lint errors surfaced through the lint container give non-zero error code as expected, which will allow local git hooks to e.g. stop pushes on error.

@fanquake fanquake merged commit d23fda0 into bitcoin:master Jul 20, 2023
@maflcko maflcko deleted the 2307-lint-ex- branch July 20, 2023 16:41
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 21, 2023
ffff4b5 lint: Add missing `set -ex` to ci/lint/06_script.sh (MarcoFalke)
fadc523 doc: Add doc comment to ci/test_imagefile (MarcoFalke)

Pull request description:

  Requested in bitcoin#28083 (review).

  Also, one doc commit.

ACKs for top commit:
  fanquake:
    ACK ffff4b5
  jamesob:
    ACK ffff4b5 ([`jamesob/ackr/28103.1.MarcoFalke.test_add_missing_set_ex`](https://github.com/jamesob/bitcoin/tree/ackr/28103.1.MarcoFalke.test_add_missing_set_ex))

Tree-SHA512: 99e67aeaae460319c2c428eab5297dbe1f1dc7f162f6592380bc5d2005308300c391cc187959cb2ace486dfe3411a8b0477f703ff11b5fe33944942c210a2d32
fanquake added a commit to bitcoin-core/gui that referenced this pull request Nov 22, 2023
…early exit

fa01f88 ci: Add missing COPY for ./test/lint/test_runner (MarcoFalke)
faff3e3 lint: Report all lint errors instead of early exit (MarcoFalke)

Pull request description:

  `all-lint.py` currently collects all failures. However, the `06_script.sh` does not, since July this year (bitcoin/bitcoin#28103 (comment)).

  Fix this by printing all failures before exiting.

  Can be tested by modifying (for example) two subtrees in the same commit and then running the linters.

ACKs for top commit:
  kevkevinpal:
    ACK [fa01f88](bitcoin/bitcoin@fa01f88)
  TheCharlatan:
    lgtm ACK fa01f88

Tree-SHA512: c0f3110f2907d87e29c755e3b77a67dfae1f8a25833fe6ef8f2f2c58cfecf1aa46f1a20881576b62252b04930140a9e416c78b4edba0780d3c4fa7aaebabba81
@bitcoin bitcoin locked and limited conversation to collaborators Dec 5, 2024
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.

4 participants