Skip to content

Testsuite Rework & Preview#163

Merged
wucke13 merged 11 commits intomainfrom
dev/flo-testsuite
May 23, 2025
Merged

Testsuite Rework & Preview#163
wucke13 merged 11 commits intomainfrom
dev/flo-testsuite

Conversation

@florianhartung
Copy link
Copy Markdown
Collaborator

Pull Request Overview

This pull request adds the testsuite rework and preview, as described in #150 and related PRs.
It is based on #147.

Testing Strategy

This pull request was tested by using it locally in my fork. For example see florianhartung#3.

Formatting

  • Ran cargo fmt
  • Ran cargo check
  • Ran cargo build
  • Ran cargo doc
  • Ran nix fmt
  • Ran nix flake check

florianhartung and others added 4 commits May 20, 2025 15:31
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: George Cosma <george.cosma@oxidos.io>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
…odule

Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
@codecov
Copy link
Copy Markdown

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@florianhartung
Copy link
Copy Markdown
Collaborator Author

florianhartung commented May 20, 2025

Note that the Nix build wasm-interpreter and report action was extremely slow (~17min).
I am not sure why this is the case...

@florianhartung
Copy link
Copy Markdown
Collaborator Author

florianhartung commented May 21, 2025

This might be the same issue: taiki-e/cargo-llvm-cov#376.
I suspect this is happening because of the newly introduced serde & serde_json dependencies. (the issue persists after removal of serde dependencies)

Some measurements taken locally:
cargo test in CLI: spec_tests takes 4.89s
cargo llvm-cov --no-report test via nix build postCheck: spec_tests takes 97.53s
cargo llvm-cov --no-report nextest via nix build postCheck: spec_tests takes 428.892s

@florianhartung florianhartung force-pushed the dev/flo-testsuite branch 2 times, most recently from 2721e91 to 630356f Compare May 22, 2025 11:50
cemonem
cemonem previously approved these changes May 22, 2025
florianhartung and others added 6 commits May 22, 2025 16:12
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>

Co-authored-by: Cem Önem <a.cemonem@gmail.com>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Previously, the panic handler was set to do nothing at the start of the
test so that panics in the interpreter do not emit backtraces to STDOUT.
This prevents us from having actual useful panic backtraces, which result
from bugs in the specification test runner itself.
This commit reduces the time where no panic handler as much as possible
by removing it temporarily only when calls to the interpreter are made.

Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
Signed-off-by: Florian Hartung <florian.hartung@dlr.de>
@wucke13 wucke13 added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit 3b2aa91 May 23, 2025
6 checks passed
@wucke13 wucke13 deleted the dev/flo-testsuite branch May 23, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants