forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
44 changed files
with
1,917 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
> [!IMPORTANT] | ||
> Open for merging new PRs until the next PR freeze date is confirmed! | ||
> 24.11 FREEZE NOVEMBER 7TH: Non-bugfix PRs not ready by this date will wait for 25.02. | ||
## Checklist | ||
Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked: | ||
|
||
- [ ] The changelog has been updated in the relevant commit(s) according to the [guidelines](https://docs.corelightning.org/docs/coding-style-guidelines#changelog-entries-in-commit-messages). | ||
- [ ] Tests have been added or modified to reflect the changes. | ||
- [ ] Documentation has been reviewed and updated as needed. | ||
- [ ] Related issues have been listed and linked, including any that this PR closes. | ||
- [ ] Related issues have been listed and linked, including any that this PR closes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
# https://docs.corelightning.org/docs/repro | ||
name: Repro Build Nightly | ||
on: | ||
# 05:00 Berlin, 03:00 UTC, 23:00 New York, 20:00 Los Angeles | ||
schedule: | ||
- cron: "0 3 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ubuntu: | ||
name: "Ubuntu repro build: ${{ matrix.version }}" | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false # Let each build finish. | ||
matrix: | ||
version: ['focal', 'jammy', 'noble'] | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build environment setup | ||
run: | | ||
echo "Building base image for ${{ matrix.version }}" | ||
sudo docker run --rm -v $(pwd):/build ubuntu:${{ matrix.version }} bash -c "\ | ||
apt-get update && \ | ||
apt-get install -y debootstrap && \ | ||
debootstrap ${{ matrix.version }} /build/${{ matrix.version }}" | ||
sudo tar -C ${{ matrix.version }} -c . | docker import - ${{ matrix.version }} | ||
- name: Builder image setup | ||
run: docker build -t cl-repro-${{ matrix.version }} - < contrib/reprobuild/Dockerfile.${{ matrix.version }} | ||
|
||
- name: Build using the builder image and store Git state | ||
run: | | ||
# Create release directory. | ||
mkdir $GITHUB_WORKSPACE/release | ||
# Perform the repro build. | ||
docker run --name cl-build -v $GITHUB_WORKSPACE:/repo -e FORCE_MTIME=$(date +%F) -t cl-repro-${{ matrix.version }} | ||
# Commit the image in order to inspect the build later. | ||
docker commit cl-build cl-release | ||
# Inspect the version. | ||
docker run --rm -v $GITHUB_WORKSPACE:/repo -t cl-release bash -c "make version > /repo/release/version.txt" | ||
# Inspect the Git tree state. | ||
docker run --rm -v $GITHUB_WORKSPACE:/repo -t cl-release bash -c "\ | ||
git --no-pager status > /repo/release/git.log && \ | ||
git --no-pager diff >> /repo/release/git.log" | ||
# Change permissions on the release files for access by the runner environment. | ||
sudo chown -R runner $GITHUB_WORKSPACE/release | ||
- name: Assert clean version and release | ||
run: | | ||
echo 'Version:' | ||
cat release/version.txt | ||
echo -e | ||
releasefile=$(ls release/clightning-*) | ||
echo 'Release file:' | ||
ls -al release/clightning-* | ||
echo -e | ||
if [ -n "$(cat release/version.txt | sed -n '/-modded/p')" ] || \ | ||
[ -n "$(echo $releasefile | sed -n '/-modded/p')" ] | ||
then | ||
echo "Git Status and Diff:" | ||
cat release/git.log | ||
echo -e | ||
echo 'Error: release modded / dirty tree.' | ||
exit 1 | ||
else | ||
echo 'Success! Clean release.' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.