Skip to content

Commit

Permalink
ci: Try to use NSS package on Linux (#1900)
Browse files Browse the repository at this point in the history
* ci: Bump Linux CI runners to `ubuntu-24.04`

Which is still being rolled out, but has a bunch of advantages for us.

* Try libnss3-dev deb

* See if updating fixes it

* Just upgrade

* NEEDRESTART_MODE

* sudo apt remove needrestart

* Again

* Again

* Omit `python-version`

* 3.8 -> 3.12

* ldd

* ~/.pki

* CHACHA20

* rm test-fixture/db/pkcs11.txt

* Minimize diff

* Print APT info

* Again

* Use libnss3-dev

* Cleanup

* Try and avoid azure mirror

* Again

* Again

* Again

* Again

* Again

* Again

* Again

* Again

* Again

* Hunch

* Try

* Minimize

* 24.04 -> latest
  • Loading branch information
larseggert authored Jul 17, 2024
1 parent e05cc70 commit 22ca6f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/actions/quic-interop-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:

- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.8
python-version: 3.12
cache: 'pip'
cache-dependency-path: 'quic-interop-runner/requirements.txt'

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ jobs:
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
${{ steps.get_actionlint.outputs.executable }} -color
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y --no-install-recommends gyp mercurial ninja-build lld
sudo apt-get install -y --no-install-recommends libnss3-dev pkg-config lld
echo "RUSTFLAGS=-C link-arg=-fuse-ld=lld" >> "$GITHUB_ENV"
- name: Install dependencies (MacOS)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y --no-install-recommends gyp mercurial ninja-build lld
sudo apt-get install -y --no-install-recommends libnss3-dev pkg-config lld
echo "RUSTFLAGS=-C link-arg=-fuse-ld=lld" >> "$GITHUB_ENV"
- name: Fetch and build NSS and NSPR
Expand Down
20 changes: 6 additions & 14 deletions qns/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM martenseemann/quic-network-simulator-endpoint@sha256:91b21d42e23023e08c5ed63c1c08ec24d058c4b30edd52aa3bd74bee87096a5b AS buildimage

RUN apt-get update && apt-get install -y --no-install-recommends \
git coreutils build-essential libclang-dev lld gyp ninja-build zlib1g-dev python \
libclang-dev libnss3-dev pkg-config lld \
&& apt-get autoremove -y && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -47,16 +47,6 @@ RUN set -eux; \

# End of copy from https://github.com/rust-lang/docker-rust...

ENV NSS_DIR=/nss \
NSPR_DIR=/nspr \
LD_LIBRARY_PATH=/dist/Release/lib

RUN set -eux; \
git clone --depth=1 https://github.com/nss-dev/nspr "$NSPR_DIR"; \
git clone --depth=1 https://github.com/nss-dev/nss "$NSS_DIR"

RUN "$NSS_DIR"/build.sh --static -Ddisable_tests=1 -o

ADD . /neqo

RUN set -eux; \
Expand All @@ -68,10 +58,12 @@ RUN set -eux; \

FROM martenseemann/quic-network-simulator-endpoint@sha256:91b21d42e23023e08c5ed63c1c08ec24d058c4b30edd52aa3bd74bee87096a5b

ENV LD_LIBRARY_PATH=/neqo/lib
RUN apt-get update && apt-get install -y --no-install-recommends \
libnss3-tools libnss3-dev \
&& apt-get autoremove -y && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

COPY --from=buildimage /neqo/target/release/neqo-client /neqo/target/release/neqo-server /neqo/bin/
COPY --from=buildimage /dist/Release/lib/*.so /neqo/lib/
COPY --from=buildimage /dist/Release/bin/certutil /dist/Release/bin/pk12util /neqo/bin/

COPY qns/interop.sh /neqo/
RUN chmod +x /neqo/interop.sh
Expand Down

0 comments on commit 22ca6f7

Please sign in to comment.