mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
ci: cleanup s3 tests
This cleans up the work done in 8c2828387. Now that #13752 has landed,
there's no need to test configurations without AWS auth in CI.
This commit is contained in:
parent
d2b6499154
commit
fa0d00e668
3 changed files with 2 additions and 25 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -67,29 +67,18 @@ jobs:
|
||||||
instrumented: false
|
instrumented: false
|
||||||
primary: true
|
primary: true
|
||||||
stdenv: stdenv
|
stdenv: stdenv
|
||||||
withAWS: true
|
|
||||||
# TODO: remove once curl-based-s3 fully lands
|
|
||||||
- scenario: on ubuntu (no s3)
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
os: linux
|
|
||||||
instrumented: false
|
|
||||||
primary: false
|
|
||||||
stdenv: stdenv
|
|
||||||
withAWS: false
|
|
||||||
- scenario: on macos
|
- scenario: on macos
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
os: darwin
|
os: darwin
|
||||||
instrumented: false
|
instrumented: false
|
||||||
primary: true
|
primary: true
|
||||||
stdenv: stdenv
|
stdenv: stdenv
|
||||||
withAWS: true
|
|
||||||
- scenario: on ubuntu (with sanitizers / coverage)
|
- scenario: on ubuntu (with sanitizers / coverage)
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
os: linux
|
os: linux
|
||||||
instrumented: true
|
instrumented: true
|
||||||
primary: false
|
primary: false
|
||||||
stdenv: clangStdenv
|
stdenv: clangStdenv
|
||||||
withAWS: true
|
|
||||||
name: tests ${{ matrix.scenario }}
|
name: tests ${{ matrix.scenario }}
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
@ -112,14 +101,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nix build --file ci/gha/tests/wrapper.nix componentTests -L \
|
nix build --file ci/gha/tests/wrapper.nix componentTests -L \
|
||||||
--arg withInstrumentation ${{ matrix.instrumented }} \
|
--arg withInstrumentation ${{ matrix.instrumented }} \
|
||||||
--argstr stdenv "${{ matrix.stdenv }}" \
|
--argstr stdenv "${{ matrix.stdenv }}"
|
||||||
${{ format('--arg withAWS {0}', matrix.withAWS) }}
|
|
||||||
- name: Run VM tests
|
- name: Run VM tests
|
||||||
run: |
|
run: |
|
||||||
nix build --file ci/gha/tests/wrapper.nix vmTests -L \
|
nix build --file ci/gha/tests/wrapper.nix vmTests -L \
|
||||||
--arg withInstrumentation ${{ matrix.instrumented }} \
|
--arg withInstrumentation ${{ matrix.instrumented }} \
|
||||||
--argstr stdenv "${{ matrix.stdenv }}" \
|
--argstr stdenv "${{ matrix.stdenv }}"
|
||||||
${{ format('--arg withAWS {0}', matrix.withAWS) }}
|
|
||||||
if: ${{ matrix.os == 'linux' }}
|
if: ${{ matrix.os == 'linux' }}
|
||||||
- name: Run flake checks and prepare the installer tarball
|
- name: Run flake checks and prepare the installer tarball
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -131,7 +118,6 @@ jobs:
|
||||||
nix build --file ci/gha/tests/wrapper.nix codeCoverage.coverageReports -L \
|
nix build --file ci/gha/tests/wrapper.nix codeCoverage.coverageReports -L \
|
||||||
--arg withInstrumentation ${{ matrix.instrumented }} \
|
--arg withInstrumentation ${{ matrix.instrumented }} \
|
||||||
--argstr stdenv "${{ matrix.stdenv }}" \
|
--argstr stdenv "${{ matrix.stdenv }}" \
|
||||||
${{ format('--arg withAWS {0}', matrix.withAWS) }} \
|
|
||||||
--out-link coverage-reports
|
--out-link coverage-reports
|
||||||
cat coverage-reports/index.txt >> $GITHUB_STEP_SUMMARY
|
cat coverage-reports/index.txt >> $GITHUB_STEP_SUMMARY
|
||||||
if: ${{ matrix.instrumented }}
|
if: ${{ matrix.instrumented }}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
componentTestsPrefix ? "",
|
componentTestsPrefix ? "",
|
||||||
withSanitizers ? false,
|
withSanitizers ? false,
|
||||||
withCoverage ? false,
|
withCoverage ? false,
|
||||||
withAWS ? null,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -57,9 +56,6 @@ rec {
|
||||||
# Boehm is incompatible with ASAN.
|
# Boehm is incompatible with ASAN.
|
||||||
nix-expr = prev.nix-expr.override { enableGC = !withSanitizers; };
|
nix-expr = prev.nix-expr.override { enableGC = !withSanitizers; };
|
||||||
|
|
||||||
# Override AWS configuration if specified
|
|
||||||
nix-store = prev.nix-store.override (lib.optionalAttrs (withAWS != null) { inherit withAWS; });
|
|
||||||
|
|
||||||
mesonComponentOverrides = lib.composeManyExtensions componentOverrides;
|
mesonComponentOverrides = lib.composeManyExtensions componentOverrides;
|
||||||
# Unclear how to make Perl bindings work with a dynamically linked ASAN.
|
# Unclear how to make Perl bindings work with a dynamically linked ASAN.
|
||||||
nix-perl-bindings = if withSanitizers then null else prev.nix-perl-bindings;
|
nix-perl-bindings = if withSanitizers then null else prev.nix-perl-bindings;
|
||||||
|
|
@ -226,9 +222,6 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
vmTests = {
|
vmTests = {
|
||||||
}
|
|
||||||
// lib.optionalAttrs (withAWS == true) {
|
|
||||||
# S3 binary cache store test using curl implementation
|
|
||||||
inherit (nixosTests) curl-s3-binary-cache-store;
|
inherit (nixosTests) curl-s3-binary-cache-store;
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (!withSanitizers && !withCoverage) {
|
// lib.optionalAttrs (!withSanitizers && !withCoverage) {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
stdenv ? "stdenv",
|
stdenv ? "stdenv",
|
||||||
componentTestsPrefix ? "",
|
componentTestsPrefix ? "",
|
||||||
withInstrumentation ? false,
|
withInstrumentation ? false,
|
||||||
withAWS ? null,
|
|
||||||
}@args:
|
}@args:
|
||||||
import ./. (
|
import ./. (
|
||||||
args
|
args
|
||||||
|
|
@ -13,6 +12,5 @@ import ./. (
|
||||||
getStdenv = p: p.${stdenv};
|
getStdenv = p: p.${stdenv};
|
||||||
withSanitizers = withInstrumentation;
|
withSanitizers = withInstrumentation;
|
||||||
withCoverage = withInstrumentation;
|
withCoverage = withInstrumentation;
|
||||||
inherit withAWS;
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue