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

Consolidate test vectors, add nextest filter #288

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

KendallWeihe
Copy link
Contributor

The original driving force for this was a failing CI. The CI was failing because our new UnitTestSuite solution isn't compatible with our nextest configuration (best guess is nextest is parallelizing things in a way wherein our solution doesn't work; cargo test works fine so our test CI job is passing without issues). We could probably find a way to configure the nextest runner/harness such that it is indeed compatible, or we could use an external state file/env-var. But, I think we should consolidate test vectors regardless (IMO we think of test vectors as a singular suite of tests so it makes sense for them to exist in a single module), and if we do, then we can use the nextest filter feature to only execute the test vectors in our rust-test-vectors CI job.

@nitro-neal lmk what you think (please note, this PR is a merge into #283)

}

#[test]
fn test_did_jwk_resolve() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also slight rename's in the two test names, but everything else is copy/pasta

@KendallWeihe
Copy link
Contributor Author

if we move forward with this, then we need to rebase to retrieve the changes I just merged from #284

@KendallWeihe KendallWeihe force-pushed the kendall/consolidate_test_vectors branch from 0808ad9 to 4c0df0e Compare August 16, 2024 16:27
@KendallWeihe
Copy link
Contributor Author

if we move forward with this, then we need to rebase to retrieve the changes I just merged from #284

Alright this is done actually, rebase and moved the latest did:dht test vector into the single module as well

}
}

mod presentation_definition {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mod presentation_definition {
mod presentation_exchange {

needs
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, fixed

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea thanks! this is much better. I may have to make a change in the test runner depending on how much the xml changes but it should be quick and easy.

Thanks!

@KendallWeihe KendallWeihe merged commit 98b6209 into kendall/vcs Aug 16, 2024
14 checks passed
@KendallWeihe KendallWeihe deleted the kendall/consolidate_test_vectors branch August 16, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants