-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ci(test-matrix): Add logs for getTestMatrix
#17673
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
Conversation
// eslint-disable-next-line no-console | ||
console.error( | ||
`Discovered ${testApplications.length} test applications${ | ||
testApplications.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's just make this testApplications.join(', ')
? Doesn't really matter if this list is long I suppose 😅
.filter(Boolean); | ||
} catch (error) { | ||
// eslint-disable-next-line no-console | ||
console.warn('Failed to compute affected projects via Nx. Running all tests instead.', error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.warn('Failed to compute affected projects via Nx. Running all tests instead.', error); | |
console.error('Failed to compute affected projects via Nx. Running all tests instead.', error); |
here an error is def. warranted xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tiny nits/ideas but overall let's go! Annoying that we have to console.error
everywhere but I guess it does not matter 😅
Adds some test for generating the test matrix to be able to easily debug it.