Skip to content

Conversation

christiangnrd
Copy link
Contributor

I often find myself wondering how long it took for a test to fail without wanting to set --verbose and do the math myself

If approved, I can also align the start message (and leave the duration section empty) or I can leave it alone since it only shows up when the --verbose flag is set.

@christiangnrd
Copy link
Contributor Author

🥲
image

Hopefully print_test_errored isn't part of the public API

@giordano
Copy link
Collaborator

No:

export runtests, addworkers, addworker

@maleadt
Copy link
Collaborator

maleadt commented Oct 13, 2025

Those methods will become public at the point somebody takes the time to test the interface out (presumably only CUDA.jl will need them).

@maleadt maleadt merged commit c9d0acb into JuliaTesting:main Oct 13, 2025
20 checks passed
@christiangnrd christiangnrd deleted the failtime branch October 13, 2025 20:06
@christiangnrd
Copy link
Contributor Author

christiangnrd commented Oct 13, 2025

#37

Terrible timing I'm very aware but should we maybe adjust the print_test_ function signatures before making them public?

Currently print_test_finished seems to swap the test name and the record for some reason.

function print_test_started(::Type{TestRecord}, wrkr, test, ctx::TestIOContext)

function print_test_finished(test, wrkr, record::TestRecord, ctx::TestIOContext)

function print_test_errorred(::Type{TestRecord}, wrkr, test, ctx::TestIOContext, test_time)

I suggest changing print_test_finished to:

function print_test_finished(record::TestRecord, wrkr, test, ctx::TestIOContext)

for consistency with the other 2.

And then CUDA.jl can set its ParallelTestRunner compat to 1.1 or whatever the version we make them public is.

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.

3 participants