Skip to content

Commit

Permalink
Fix test agent tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VianneyRuhlmann committed Sep 20, 2024
1 parent 27bfe8e commit ef9bc24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ jobs:
- name: "[${{ steps.rust-version.outputs.version}}] cargo build --workspace --exclude builder --verbose"
shell: bash
run: cargo build --workspace --exclude builder --verbose
- name: "[${{ steps.rust-version.outputs.version}}] cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(::require_test_agent::)'"
- name: "[${{ steps.rust-version.outputs.version}}] cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(require_test_agent::)'"
shell: bash
# Run doc tests with cargo test and run tests with nextest and generate junit.xml
run: cargo test --workspace --exclude builder --doc --verbose && cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(::require_test_agent::)'
run: cargo test --workspace --exclude builder --doc --verbose && cargo nextest run --workspace --exclude builder --profile ci --verbose -E '!test(require_test_agent::)'
env:
RUST_BACKTRACE: 1
- name: "[${{ steps.rust-version.outputs.version}}] Test agent tests: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(::require_test_agent::)'"
- name: "[${{ steps.rust-version.outputs.version}}] Test agent tests: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(require_test_agent::)'"
if: runner.os == 'Linux'
shell: bash
run: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(::require_test_agent::)'
run: cargo nextest run --workspace --exclude builder --profile ci --verbose -E 'test(require_test_agent::)'
env:
RUST_BACKTRACE: 1
- name: "[${{ steps.rust-version.outputs.version}}] RUSTFLAGS=\"-C prefer-dynamic\" cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(::require_test_agent::)'"
- name: "[${{ steps.rust-version.outputs.version}}] RUSTFLAGS=\"-C prefer-dynamic\" cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(require_test_agent::)'"
shell: bash
run: cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(::require_test_agent::)'
run: cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(require_test_agent::)'
env:
RUSTFLAGS: "-C prefer-dynamic"
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -220,8 +220,8 @@ jobs:
rust_version: cross-centos7
- run: cargo install cross || true
- run: cross build --workspace --target x86_64-unknown-linux-gnu --exclude builder
- run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude builder -- --skip "::single_threaded_tests::" --skip "::require_test_agent::"
- run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude builder --exclude bin_tests -- --skip "::tests::" --skip "::api_tests::" --test-threads 1 --skip "::require_test_agent::"
- run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude builder -- --skip "::single_threaded_tests::" --skip "require_test_agent::"
- run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude builder --exclude bin_tests -- --skip "::tests::" --skip "::api_tests::" --test-threads 1 --skip "require_test_agent::"

ffi_bake:
strategy:
Expand Down
6 changes: 3 additions & 3 deletions tools/docker/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ENV CARGO_HOME="/root/.cargo"
WORKDIR /build

RUN apk update \
&& apk add --no-cache \
&& apk add --no-cache \
build-base \
cargo \
cmake \
Expand All @@ -33,7 +33,7 @@ RUN apk update \
unzip \
bash \
clang16-libclang \
&& mkdir /usr/local/src
&& mkdir /usr/local/src

# Tell docker to use bash as the default
SHELL ["/bin/bash", "-c"]
Expand All @@ -45,7 +45,7 @@ SHELL ["/bin/bash", "-c"]

FROM alpine_base as alpine_aws_cli
RUN apk add --no-cache aws-cli \
&& rm -rf /var/cache/apk/*
&& rm -rf /var/cache/apk/*

RUN aws --version # Just to make sure its installed alright

Expand Down

0 comments on commit ef9bc24

Please sign in to comment.