Skip to content

Commit ada44bd

Browse files
committed
fixup! ci: Added nightly reprobuild test
1 parent 084e1fd commit ada44bd

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

.github/workflows/repro.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
2224

2325
- name: Build base image
2426
run: |
@@ -71,7 +73,8 @@ jobs:
7173
7274
- name: Build with jammy
7375
run: |
74-
docker run --rm -v $(pwd):/repo cl-repro-jammy
76+
docker run --rm -v $(pwd):/repo cl-repro-jammy bash -c "git clone /repo . && uv sync --all-extras --all-groups && uv run tools/repro-build.sh --force-mtime=2000-01-01 && cp *.xz /repo/release/"
77+
7578
7679
- name: Generate checksums
7780
run: |
@@ -111,7 +114,7 @@ jobs:
111114
112115
- name: Build with jammy
113116
run: |
114-
docker run --rm -v $(pwd):/repo cl-repro-jammy
117+
docker run --rm -v $(pwd):/repo cl-repro-jammy bash -c "git clone /repo . && uv sync --all-extras --all-groups && uv run tools/repro-build.sh --force-mtime=2000-01-01 && cp *.xz /repo/release/"
115118
116119
- name: Generate checksums
117120
run: |

.gitmodules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[submodule "daemon/jsmn"]
22
path = external/jsmn
33
url = https://github.com/zserge/jsmn
4+
[submodule "libsodium"]
5+
path = external/libsodium
6+
url = https://github.com/jedisct1/libsodium.git
47
[submodule "external/libbacktrace"]
58
path = external/libbacktrace
69
url = https://github.com/ianlancetaylor/libbacktrace.git
@@ -11,3 +14,7 @@
1114
[submodule "external/gheap"]
1215
path = external/gheap
1316
url = https://github.com/valyala/gheap
17+
[submodule "external/lowdown"]
18+
path = external/lowdown
19+
url = https://github.com/kristapsdz/lowdown.git
20+
ignore = dirty

contrib/reprobuild/Dockerfile.focal

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ RUN apt-get update \
2626
unzip \
2727
wget \
2828
git \
29-
zip
30-
31-
# Ensure correct ownership
32-
RUN chown root:root /etc/sudoers
33-
RUN chown root:root /usr/lib/sudo/sudoers.so
29+
zip \
30+
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*.
31+
RUN echo "ALL ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
3432

3533
# Download and install jq from official repository
3634
RUN wget -O /usr/local/bin/jq https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 \

contrib/reprobuild/Dockerfile.jammy

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ RUN apt-get update \
2323
libsodium23 \
2424
libtool \
2525
m4 \
26-
sudo \
2726
unzip \
2827
wget \
2928
jq \
3029
zip
3130

32-
# Ensure correct ownership
33-
RUN chown root:root /etc/sudoers
34-
RUN chown root:root /etc/sudo.conf
35-
RUN chown root:root /usr/libexec/sudo/sudoers.so
31+
RUN printf 'root ALL=(ALL) ALL\n%%sudo ALL=(ALL) ALL\n' > /etc/sudoers && \
32+
chmod 0440 /etc/sudoers
33+
34+
# Since we're running as root, create a sudo wrapper that's a no-op
35+
RUN printf '#!/bin/sh\nexec "$@"\n' > /usr/local/bin/sudo && \
36+
chmod +x /usr/local/bin/sudo
3637

3738
# Install Python3.10 (more reproducible than relying on python3-setuptools)
3839
RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \

0 commit comments

Comments
 (0)