Skip to content

Commit fa0d00e

Browse files
lovesegfaultxokdvium
authored andcommitted
ci: cleanup s3 tests
This cleans up the work done in 8c28283. Now that #13752 has landed, there's no need to test configurations without AWS auth in CI.
1 parent d2b6499 commit fa0d00e

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,18 @@ jobs:
6767
instrumented: false
6868
primary: true
6969
stdenv: stdenv
70-
withAWS: true
71-
# TODO: remove once curl-based-s3 fully lands
72-
- scenario: on ubuntu (no s3)
73-
runs-on: ubuntu-24.04
74-
os: linux
75-
instrumented: false
76-
primary: false
77-
stdenv: stdenv
78-
withAWS: false
7970
- scenario: on macos
8071
runs-on: macos-14
8172
os: darwin
8273
instrumented: false
8374
primary: true
8475
stdenv: stdenv
85-
withAWS: true
8676
- scenario: on ubuntu (with sanitizers / coverage)
8777
runs-on: ubuntu-24.04
8878
os: linux
8979
instrumented: true
9080
primary: false
9181
stdenv: clangStdenv
92-
withAWS: true
9382
name: tests ${{ matrix.scenario }}
9483
runs-on: ${{ matrix.runs-on }}
9584
timeout-minutes: 60
@@ -112,14 +101,12 @@ jobs:
112101
run: |
113102
nix build --file ci/gha/tests/wrapper.nix componentTests -L \
114103
--arg withInstrumentation ${{ matrix.instrumented }} \
115-
--argstr stdenv "${{ matrix.stdenv }}" \
116-
${{ format('--arg withAWS {0}', matrix.withAWS) }}
104+
--argstr stdenv "${{ matrix.stdenv }}"
117105
- name: Run VM tests
118106
run: |
119107
nix build --file ci/gha/tests/wrapper.nix vmTests -L \
120108
--arg withInstrumentation ${{ matrix.instrumented }} \
121-
--argstr stdenv "${{ matrix.stdenv }}" \
122-
${{ format('--arg withAWS {0}', matrix.withAWS) }}
109+
--argstr stdenv "${{ matrix.stdenv }}"
123110
if: ${{ matrix.os == 'linux' }}
124111
- name: Run flake checks and prepare the installer tarball
125112
run: |
@@ -131,7 +118,6 @@ jobs:
131118
nix build --file ci/gha/tests/wrapper.nix codeCoverage.coverageReports -L \
132119
--arg withInstrumentation ${{ matrix.instrumented }} \
133120
--argstr stdenv "${{ matrix.stdenv }}" \
134-
${{ format('--arg withAWS {0}', matrix.withAWS) }} \
135121
--out-link coverage-reports
136122
cat coverage-reports/index.txt >> $GITHUB_STEP_SUMMARY
137123
if: ${{ matrix.instrumented }}

ci/gha/tests/default.nix

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
componentTestsPrefix ? "",
1313
withSanitizers ? false,
1414
withCoverage ? false,
15-
withAWS ? null,
1615
...
1716
}:
1817

@@ -57,9 +56,6 @@ rec {
5756
# Boehm is incompatible with ASAN.
5857
nix-expr = prev.nix-expr.override { enableGC = !withSanitizers; };
5958

60-
# Override AWS configuration if specified
61-
nix-store = prev.nix-store.override (lib.optionalAttrs (withAWS != null) { inherit withAWS; });
62-
6359
mesonComponentOverrides = lib.composeManyExtensions componentOverrides;
6460
# Unclear how to make Perl bindings work with a dynamically linked ASAN.
6561
nix-perl-bindings = if withSanitizers then null else prev.nix-perl-bindings;
@@ -226,9 +222,6 @@ rec {
226222
};
227223

228224
vmTests = {
229-
}
230-
// lib.optionalAttrs (withAWS == true) {
231-
# S3 binary cache store test using curl implementation
232225
inherit (nixosTests) curl-s3-binary-cache-store;
233226
}
234227
// lib.optionalAttrs (!withSanitizers && !withCoverage) {

ci/gha/tests/wrapper.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
stdenv ? "stdenv",
66
componentTestsPrefix ? "",
77
withInstrumentation ? false,
8-
withAWS ? null,
98
}@args:
109
import ./. (
1110
args
1211
// {
1312
getStdenv = p: p.${stdenv};
1413
withSanitizers = withInstrumentation;
1514
withCoverage = withInstrumentation;
16-
inherit withAWS;
1715
}
1816
)

0 commit comments

Comments
 (0)