Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test ci runner #672

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 1 }
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

build:
name: Build
runs-on: [x86_64, linux, nix]
runs-on: [test]
needs: [commitlint]
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions crates/jstzd/tests/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ async fn test_octez_client() {
.unwrap();
println!("octez-client --version: {:?}", output);
}

#[test]
fn timeout() {
std::thread::sleep(std::time::Duration::from_secs(120));
}
2 changes: 1 addition & 1 deletion crates/jstzd/tests/octez_client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async fn originate_contract_and_wait_for() {
octez_client.wait_for(&op, Some(&head), None),
)
.await
.expect("wait_for should complete soon enough")
.expect("wait_for should complete soon enough!!")
.expect("wait_for should be able to find the operation");

tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
Expand Down
4 changes: 2 additions & 2 deletions nix/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
src = let
# Include all Rust files / cargo related files
# Include all files in the `contracts` and `crates` directories
regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$"];
regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$" "\.config.*$"];
in
lib.sourceByRegex (lib.cleanSource ../.) regexes;

Expand Down Expand Up @@ -135,7 +135,7 @@ in {
# Don't run the `jstz_api` integration tests until they've been paralellized
#
# Note: --workspace is required for --exclude. Once --exclude is removed, remove --workspace
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\"";
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\" --config-file ${src}/.config/nextest.toml";
});

cargo-llvm-cov = craneLib.cargoLlvmCov (commonWorkspace
Expand Down
Loading