Commit graph

1923 commits

Author SHA1 Message Date
Carl Dong
7180bdcbc9 guix/prelude: Override VERSION with FORCE_VERSION
Previously, if the builder exported $VERSION in their environment (as
past Gitian-building docs told them to), but their HEAD does not
actually point to v$VERSION, their build outputs will differ from those
of other builders.

This is because the contrib/guix/guix-* scripts only ever act on the
current git worktree, and does not try to check out $VERSION if $VERSION
is set in the environment.

Setting $VERSION only makes the scripts pretend like the current
worktree is $VERSION.

This problem was seen in jonatack's attestation for all.SHA256SUMS,
where only his bitcoin-22.0rc3-osx-signed.dmg differed from everyone
else's.

Here is my deduced sequence of events:

1. Aug 27th: He guix-builds 22.0rc3 and uploads his attestations up to
   guix.sigs

2. Aug 30th, sometime after POSIX time 1630310848: he pulls the latest
   changes from master in the same worktree where he guix-built 22.0rc3
   and ends up at 7be143a960

3. Aug 30th, sometime before POSIX time 1630315907: With his worktree
   still on 7be143a960, he guix-codesigns. Normally, this would result
   in outputs going in guix-build-7be143a960e2, but he had
   VERSION=22.0rc3 in his environment, so the guix-* scripts pretended
   like he was building 22.0rc3, and used 22.0rc3's guix-build directory
   to locate un-codesigned outputs and dump codesigned ones.

   However, our SOURCE_DATE_EPOCH defaults to the POSIX time of HEAD
   (7be143a960), which made all timestamps in the resulting codesigned
   DMG 1630310848, 7be143a960e2's POSIX timestamp. This differs from the
   POSIX timestamp of 22.0rc3, which is 1630348517. Note that the
   windows codesigning procedure does not consider SOURCE_DATE_EPOCH.

We resolve this by only allowing VERSION overrides via the FORCE_VERSION
environment variable.
2022-08-03 12:19:43 -07:00
fanquake
4f11bbf7d3 guix: ignore additioanl failing certvalidator test
======================================================================
ERROR: test_revocation_mode_soft (tests.test_validate.ValidateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/test_validate.py", line 85, in test_revocation_mode_soft
    validate_path(context, path)
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/../certvalidator/validate.py", line 50, in validate_path
    return _validate_path(validation_context, path)
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/../certvalidator/validate.py", line 358, in _validate_path
    raise PathValidationError(pretty_message(
certvalidator.errors.PathValidationError: The path could not be validated because the end-entity certificate expired 2022-01-14 12:00:00Z

Github-Pull: #24057
Rebased-From: 8588591965
2022-08-03 12:18:11 -07:00
W. J. van der Laan
5514d409a9 doc: Stop nixing - in manual pages
The version replacement here is not working anyway, not just that but it
is actively harmful as it removes all `-` from the text. So remove that
line. See discussion in #22681.

Tree-SHA512: 909c6225a50bbda1253bae65c09700a658bd36b5c91c91cea28d1df0aad5dc4adb095e0695259eca377536da34d17741ce453a5c5c50041d1163d94bbbe5355d
2022-08-01 15:35:07 -07:00
Andrew Chow
0bfa783a00 guix: Don't include directory name in SHA256SUMS
The SHA256SUMS file can be used in a sha256sum -c command to verify
downloaded binaries. However users are likely to download just a single
file and not place this file in the correct directory relative to the
SHA256SUMS file for the simple verification command to work. By not
including the directory name in the SHA256SUMS file, it will be easier
for users to verify downloaded binaries.

Co-authored-by: Carl Dong <contact@carldong.me>

Github-Pull: bitcoin/bitcoin#22654
Rebased-From: fb17c99e35
2022-08-01 15:35:06 -07:00
Carl Dong
13a256fc9b release: Release with separate SHA256SUMS and sig files
This allows us to remove the rfc4880 EOL hacks and release with a
SHA256SUMS.asc file that's a combination of all signer signatures.

Github-Pull: bitcoin/bitcoin#22642
Rebased-From: 90b3e482e9
2022-08-01 15:35:06 -07:00
Carl Dong
1e6ee42132 guix-verify: Non-zero exit code when anything fails
Previously, if verification fails, the correct message will be printed,
but the exit code would still be 0.

Github-Pull: bitcoin/bitcoin#22643
Rebased-From: d451b60d22
2022-08-01 15:35:06 -07:00
Jon Atack
50b66c238e contrib, p2p: update I2P hardcoded seeds
Github-Pull: #22589
Rebased-From: 2962640c49
2022-08-01 15:35:06 -07:00
Andrew Chow
925571c7dd guix: Ensure EPOCH_SOURCE_DATE does not include GPG information
If the user has set log.showSignature=true in their git config, then the
git log will always output GPG signature information. Since git log is
used to set EPOCH_SOURCE_DATE, this will mistakenly have GPG signature
information in it which causes issues for the build. To avoid this
issue, we override the config and force log.showSignature=false.

Github-Pull: #22531
Rebased-From: 9b313dfef1
2022-08-01 15:35:06 -07:00
Andrew Chow
8f495aa3ef guix: Remove extra \r from all.SHA256SUMS line ending
guix-attest mistakenly added an extra \r to the line endings in
all.SHA256SUMS, causing guix-verify to erroneously fail.

Co-Authored-By: Carl Dong <contact@carldong.me>

Github-Pull: #22531
Rebased-From: 43225f0a2a
2022-08-01 15:35:06 -07:00
Andrew Chow
c576e88cee guix: Allow changing the base manifest in guix-verify
When verifying guix attestations, it is useful to set a particular
signer's manifest as the base to compare against.

Github-Pull: #22531
Rebased-From: 4a466388a0
2022-08-01 15:35:06 -07:00
Andrew Chow
82d8bdb042 guix: Make all.SHA256SUMS rather than codesigned.SHA256SUMS
Github-Pull: #22531
Rebased-From: 33455c7696
2022-08-01 15:35:06 -07:00
jonatack
a32205f9cc script, doc: guix touchups
Github-Pull: #22538
Rebased-From: 198ceb82f9
2022-08-01 15:35:06 -07:00
h
bd56b60454 Updated Readme, Corrected the codesign typo
Github-Pull: #22538
Rebased-From: d7b7f610a5
2022-08-01 15:35:06 -07:00
Carl Dong
96aaed9813 guix/build: Remove vestigial SKIPATTEST.TAG
Github-Pull: #22533
Rebased-From: 9f01feda0a
2022-08-01 15:35:06 -07:00
Carl Dong
9cc787300b guix/INSTALL: Misc fixups
Github-Pull: #22511
Rebased-From: a884a1edcd
2022-08-01 15:35:06 -07:00
Carl Dong
d1be61f836 guix: Silence getent(1) invocation
Github-Pull: #22511
Rebased-From: 3c4d2c418e
2022-08-01 15:35:06 -07:00
Pablo Greco
7ab26e5fd3 Fix elements naming in gitian builds 2022-08-01 19:28:21 +00:00
Pablo Greco
a0585cec57 Fix naming in guix builds 2022-08-01 19:28:19 +00:00
Glenn Willen
8896cf7093 ci: Fix spelling to satisfy linter 2022-05-25 11:48:35 -07:00
Glenn Willen
91b76ae562 Merge cf2eb09bc5 into merged_master (Elements PR ElementsProject/elements#954) 2022-04-21 16:11:57 -07:00
Glenn Willen
f035196ceb Merge 586e5c7dd7 into merged_master (Elements PR ElementsProject/elements#1062) 2022-04-20 21:51:53 -07:00
Glenn Willen
7595e7cf47 Ergonomic + other improvements to review-prs.py 2022-03-17 20:16:14 -07:00
Glenn Willen
7163ec023f Add semi-automated merge-review tool for Elements upstream merge process. 2022-03-17 20:16:14 -07:00
Pablo Greco
85c3c2b819 Deprecate con_dyna_deploy_start in favor of evbparams 2021-11-23 14:36:03 +00:00
Andrew Poelstra
242586cea6 lint: fix pylint issues 2021-10-15 00:20:23 +00:00
Andrew Poelstra
ba8273ac94 lint: fix non-pylint linter errors
Includes fixing all the spelling mistakes that are our fault,
but not those present upstream in Core.
2021-10-15 00:20:20 +00:00
Andrew Poelstra
7b69a940eb Merge 846ab81794 into merged_master (Elements PR ElementsProject/elements#1051) 2021-10-02 13:27:49 +00:00
Andrew Poelstra
c873a78ff4 pset tutorial: add combinepsbt safety checks, expand comments 2021-10-01 00:54:00 +00:00
Andrew Poelstra
57ea7e8a59 pset tutorial: expand a couple of comments, fix numbering 2021-10-01 00:54:00 +00:00
Andrew Poelstra
541d18a8e7 Merge 27f9f0beab into merged_master (Elements PR ElementsProject/elements#1042) 2021-09-18 03:56:00 +00:00
Andrew Poelstra
b4918dcf4b Merge 532d55d059 into merged_master (Elements PR ElementsProject/elements#1036) 2021-09-18 01:28:55 +00:00
Andrew Poelstra
048ca4a550 pset: fix logic bug in analyzepsbt so that the "blinder" role may be returned 2021-09-14 15:48:35 +00:00
Andrew Poelstra
ec27e74f21 pset_tutorial: write 2-party PSET coinjoin demo 2021-09-14 15:30:31 +00:00
Andrew Poelstra
a7643260a4 assets_tutorial: move Daemon into its own file 2021-09-14 15:28:59 +00:00
Andrew Poelstra
1d2dacb1e2 assets_tutorial: basically rewrite the whole thing 2021-09-07 17:49:15 +00:00
Andrew Poelstra
6a74528a40 assets_tutorial: clean up PIDs and temp directories correctly 2021-09-07 17:49:15 +00:00
Andrew Poelstra
6bd3df60e0 assets_tutorial: fix argument and path handling 2021-09-07 17:49:15 +00:00
Pieter Wuille
8515f40fed Add signet support to gen_key_io_test_vectors.py 2021-08-17 22:32:47 +00:00
Pieter Wuille
b3df66f82e Use Bech32m encoding for v1+ segwit addresses
This also includes updates to the Python test framework implementation,
test vectors, and release notes.

https://github.com/bitcoin/bitcoin/pull/20861 (3/5)
2021-08-17 22:32:47 +00:00
Andrew Poelstra
434d3e7779 Merge 201c5e4aec into merged_master (Bitcoin PR bitcoin/bitcoin#22465) 2021-08-03 14:00:26 +00:00
Andrew Poelstra
f4218e33cb Merge 4fdd0ff9ee into merged_master (Bitcoin PR bitcoin/bitcoin#22199) 2021-08-03 13:23:40 +00:00
Andrew Poelstra
7a9b6ec4bf Merge e7441a6a45 into merged_master (Bitcoin PR bitcoin/bitcoin#21711) 2021-08-03 12:46:53 +00:00
Andrew Poelstra
cc0e38ccb2 Merge 4371e635d6 into merged_master (Bitcoin PR bitcoin/bitcoin#22410) 2021-08-02 22:31:31 +00:00
Andrew Poelstra
78c3a94eb8 Merge d8f1e1327f into merged_master (Bitcoin PR bitcoin/bitcoin#22112) 2021-07-31 21:46:05 +00:00
Andrew Poelstra
915d06019a Merge 34d1d6a112 into merged_master (Bitcoin PR bitcoin/bitcoin#22381) 2021-07-31 13:46:26 +00:00
Andrew Poelstra
ae15e5dc5d Merge 137f3b9ba3 into merged_master (Bitcoin PR bitcoin/bitcoin#22405) 2021-07-31 01:42:33 +00:00
Andrew Poelstra
372cbb86e1 Merge 2711559845 into merged_master (Bitcoin PR bitcoin/bitcoin#22365) 2021-07-30 18:13:29 +00:00
Andrew Poelstra
083e08cf82 Merge d6a59166a1 into merged_master (Bitcoin PR bitcoin/bitcoin#22257)
Just as mechanical and annoying as it looks.
2021-07-28 21:06:57 +00:00
Andrew Poelstra
95858637f6 Merge a305a687e7 into merged_master (Bitcoin PR bitcoin/bitcoin#22244) 2021-07-27 23:51:48 +00:00
Andrew Poelstra
5effa94fc5 Merge 0f47e01d7d into merged_master (Bitcoin PR bitcoin/bitcoin#20923) 2021-07-27 21:03:29 +00:00