From 05b2b98ac6e761430d4f14c59eeec6ddc8661896 Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Tue, 30 Jan 2024 20:50:39 +0000 Subject: [PATCH 1/4] Check rustc version --- .github/workflows/regression_test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index 1e9c979..fa12cb3 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -84,6 +84,9 @@ jobs: - -F urispec - --all-features --release steps: + - name: Check rust version + run: rustc -V; cargo -V; rustup -V + - uses: actions/checkout@v3 - name: Start RabbitMQ server run: ./start_rabbitmq.sh From f7cb266aebcef65ea2103dbac62ca9d72bce3396 Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Tue, 30 Jan 2024 20:57:55 +0000 Subject: [PATCH 2/4] Update github actions --- .github/workflows/benchmarks.yml | 4 ++-- .github/workflows/regression_test.yml | 11 +++++++---- .github/workflows/test_coverage.yml | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 3543694..2bf1fc1 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Start RabbitMQ server run: ./start_rabbitmq.sh @@ -33,7 +33,7 @@ jobs: # runs-on: macos-11 # steps: - # - uses: actions/checkout@v3 + # - uses: actions/checkout@v4 # - uses: docker-practice/actions-setup-docker@master # - name: Start RabbitMQ server diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index fa12cb3..ab0d12d 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -31,7 +31,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - name: Check rust version + run: rustc -V; cargo -V; rustup -V - name: cargo build (debug, all-features) run: cargo build --all-features --verbose @@ -48,7 +51,7 @@ jobs: - stable - 1.56 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -63,7 +66,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Start RabbitMQ server run: ./start_rabbitmq.sh @@ -87,7 +90,7 @@ jobs: - name: Check rust version run: rustc -V; cargo -V; rustup -V - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Start RabbitMQ server run: ./start_rabbitmq.sh diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 0d5de6e..8ed1199 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -30,7 +30,7 @@ jobs: # codecov: # runs-on: ubuntu-latest # steps: - # - uses: actions/checkout@v3 + # - uses: actions/checkout@v4 # - name: Start RabbitMQ server # run: ./start_rabbitmq.sh # - name: Cargo test instrumented @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Start RabbitMQ server run: ./start_rabbitmq.sh - name: Install rust toolchain From fe89aca7645ae93c4dc64501fb58e11a505b30c2 Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Tue, 30 Jan 2024 21:04:27 +0000 Subject: [PATCH 3/4] Fix clippy for rustc 1.75 --- amqprs/src/api/channel/mod.rs | 1 + amqprs/src/frame/method/mod.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/amqprs/src/api/channel/mod.rs b/amqprs/src/api/channel/mod.rs index 20a11f6..1732306 100644 --- a/amqprs/src/api/channel/mod.rs +++ b/amqprs/src/api/channel/mod.rs @@ -482,4 +482,5 @@ pub use basic::*; pub use confim::*; pub use exchange::*; pub use queue::*; +#[allow(unused_imports)] // clippy false positive pub use tx::*; diff --git a/amqprs/src/frame/method/mod.rs b/amqprs/src/frame/method/mod.rs index 9d99ea8..42c0fe7 100644 --- a/amqprs/src/frame/method/mod.rs +++ b/amqprs/src/frame/method/mod.rs @@ -11,7 +11,6 @@ mod exchange; mod queue; mod tx; -pub use access::*; pub use basic::*; pub use channel::*; pub use confirm::*; From 625255696232e7d0668485dc8701e49473705dce Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Tue, 30 Jan 2024 21:11:16 +0000 Subject: [PATCH 4/4] Schedule daily run. --- .github/workflows/regression_test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index ab0d12d..704dcc0 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -1,9 +1,11 @@ name: ci run-name: "Regression Test" -# on: [push, workflow_dispatch] on: + schedule: + - cron: '30 1 * * *' + push: branches: ["main"] paths-ignore: @@ -12,6 +14,7 @@ on: - 'rabbitmq_spec/**' - 'prepare_release.sh' - 'regression_test.sh' + workflow_dispatch: pull_request: