Skip to content

Commit cef7ba1

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

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/repro.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1212
cancel-in-progress: true
1313

14+
variables:
15+
GIT_SUBMODULE_STRATEGY: recursive
16+
1417
jobs:
1518
build-base-image:
1619
name: Build jammy Docker Image
@@ -71,7 +74,8 @@ jobs:
7174
7275
- name: Build with jammy
7376
run: |
74-
docker run --rm -v $(pwd):/repo cl-repro-jammy
77+
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/"
78+
7579
7680
- name: Generate checksums
7781
run: |
@@ -111,7 +115,7 @@ jobs:
111115
112116
- name: Build with jammy
113117
run: |
114-
docker run --rm -v $(pwd):/repo cl-repro-jammy
118+
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/"
115119
116120
- name: Generate checksums
117121
run: |

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)