ci: Remove second user account #27376
pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2303-ci-no-non-root- changing 2 files +3 −22-
maflcko commented at 6:32 am on March 31, 2023: memberThe rationale for the second (nonroot) account no longer applies. See also #27333 (review)
-
ci: Remove second user account fafe3a8e38
-
DrahtBot commented at 6:32 am on March 31, 2023: contributor
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 josibake If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
-
DrahtBot added the label Tests on Mar 31, 2023
-
josibake approved
-
josibake commented at 6:41 am on March 31, 2023: member
-
maflcko commented at 7:59 am on March 31, 2023: memberred CI can be ignored
-
fanquake requested review from hebasto on Mar 31, 2023
-
fanquake merged this on Mar 31, 2023
-
fanquake closed this on Mar 31, 2023
-
maflcko deleted the branch on Mar 31, 2023
-
sidhujag referenced this in commit 2a0e25d275 on Apr 1, 2023
-
hebasto commented at 6:55 pm on April 4, 2023: member
Unfortunately, I’ve noticed a regression introduced in this PR.
On Ubuntu 22.04, running
FILE_ENV="./ci/test/00_setup_env_native_tidy.sh" ./ci/test_run_all.sh
locally fails with0... 1IWYU edited 30 files on your behalf. 2 3warning: Not a git repository. Use --no-index to compare two paths outside a working tree 4usage: git diff --no-index [<options>] <path> <path> 5...
-
maflcko commented at 9:43 am on April 5, 2023: member
Unfortunately, I’ve noticed a regression introduced in this PR.
It works for me on latest master locally and on my CI cluster. Please provide exact steps to reproduce, ideally starting from a fresh install of your Linux.
-
josibake commented at 11:07 am on April 5, 2023: member
I was able to reproduce this locally on master by running:
0make distclean 1FILE_ENV="./ci/test/00_setup_env_native_tidy.sh" ./ci/test_run_all.sh
I ssh’d into the container and found that the
git diff
command is failing due todubious permissions
, which I think./ci/lint/docker-entrypoint.sh
is supposed to fix withgit config --global --add safe.directory /bitcoin
? Seems like maybe that fix isn’t working everywhere but we didn’t catch it before because of the whole two users hack.I was able to get all the scripts to run after I ran
git config --global --add safe.directory "*"
inside the docker container, but I’m not sure where to put this in the ci scripts to make this work. Will poke around a bit more and try and open a PR. Curious if you have any insights, as well @MarcoFalke -
maflcko commented at 11:12 am on April 5, 2023: member
./ci/lint/
…The lint system is completely different from
./ci/test/
. -
josibake commented at 11:14 am on April 5, 2023: member
The lint system is completely different from ./ci/test/.
yeah, just realized there is no overlap. seems like we just need to apply the same fix the lint system is using in
./ci/test/
? -
maflcko commented at 11:15 am on April 5, 2023: memberAs for the fix, anything should be fine. git
safe.directory
, or restoring thechown
, or fiddling with thersync
command. -
josibake commented at 11:16 am on April 5, 2023: member
As for the fix, anything should be fine. git safe.directory, or restoring the chown, or fiddling with the rsync command.
cool, I’ll open a PR
-
fanquake referenced this in commit 5a8bd45056 on Apr 6, 2023
-
sidhujag referenced this in commit 9d5a44baca on Apr 6, 2023
-
pinheadmz referenced this in commit 357ccb4c85 on Jun 15, 2023
-
pinheadmz referenced this in commit e51113c03d on Jun 17, 2023
-
bitcoin locked this on Apr 4, 2024
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 15:12 UTC
More mirrored repositories can be found on mirror.b10c.me