From 0e1b6182ed06b349a30534a820a6918260ecf31c Mon Sep 17 00:00:00 2001 From: LingMan Date: Tue, 14 Feb 2023 13:33:19 +0100 Subject: [PATCH 1/3] Run CI on changes to any file Currently CI is only run on changes to specific files. The list of these files incomplete and would likely get outdated again if it were expanded. Exluding specific files would be a shorter, more stable list. However, the changelog is only kept for posterity and the readme has seen all of two commits in the past three years that wouldn't have triggered CI by changing other files as well, so don't bother and just run CI for any changed file. --- .github/workflows/lint.yml | 6 ------ .github/workflows/test.yml | 5 ----- 2 files changed, 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e299586ef8..dc3394c87c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,12 +4,6 @@ on: push: branches: [main, 0.4.x] pull_request: - paths: - - "**.rs" - - .github/** - - .ci/** - - Cargo.toml - - deny.toml jobs: lint: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63e7c81c5c..ab968aac2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,11 +4,6 @@ on: push: branches: [main, 0.4.x] pull_request: - paths: - - "**.rs" - - .github/** - - .ci/** - - Cargo.toml jobs: timezones_linux: From b0e46e4b982f8f0a216c7a26714f91d6ae48cbf0 Mon Sep 17 00:00:00 2001 From: LingMan Date: Tue, 14 Feb 2023 14:31:13 +0100 Subject: [PATCH 2/3] Add chrono-fuzz to CI Ensures future changes to break it again. --- .github/workflows/lint.yml | 8 ++++++-- .github/workflows/test.yml | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dc3394c87c..41145a30a9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,8 +13,12 @@ jobs: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v1 - - run: cargo fmt -- --check --color=always - - run: cargo clippy --color=always -- -D warnings -A clippy::manual-non-exhaustive + - run: | + cargo fmt --check -- --color=always + cargo fmt --check --manifest-path fuzz/Cargo.toml + - run: | + cargo clippy --color=always -- -D warnings -A clippy::manual-non-exhaustive + cargo clippy --manifest-path fuzz/Cargo.toml --color=always -- -D warnings env: RUSTFLAGS: "-Dwarnings" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab968aac2f..851ef5cec7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,6 +62,7 @@ jobs: with: toolchain: ${{ matrix.rust_version }} - uses: Swatinem/rust-cache@v1 + - run: cargo check --manifest-path fuzz/Cargo.toml --all-targets # run --lib and --doc to avoid the long running integration tests which are run elsewhere - run: cargo test --lib --all-features --color=always -- --color=always - run: cargo test --doc --all-features --color=always -- --color=always From 9f0500b37106d32c488ba263d2aac78fcd6acd23 Mon Sep 17 00:00:00 2001 From: LingMan Date: Tue, 14 Feb 2023 14:36:30 +0100 Subject: [PATCH 3/3] chrono-fuzz: Update libfuzzer-sys dependency from 0.3 to 0.4 --- fuzz/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index bcbc3aad25..d15c9a9f7f 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -10,7 +10,7 @@ edition = "2018" cargo-fuzz = true [dependencies] -libfuzzer-sys = "0.3" +libfuzzer-sys = "0.4" [dependencies.chrono] path = ".."