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

Do not override reporter option if not defined in config file (issue #369) #372

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

smainil
Copy link
Collaborator

@smainil smainil commented Nov 7, 2024

Fix #369

@smainil
Copy link
Collaborator Author

smainil commented Nov 13, 2024

Do I need to do something to start the test library workflow ?

@MikeMcC399
Copy link

@smainil

Do I need to do something to start the test library workflow ?

It needs a maintainer to approve. I'm in the same situation with pending PRs and I haven't committed to this repo before.

@Nolski
Copy link

Nolski commented Dec 2, 2024

@tcort any chance you could merge this? This is breaking builds downstream and I have confirmed that this fix works for us. I believe this issue is breaking all cases of using a config file as far as I can tell and there are no current ways to work around this issue for users.

@MikeMcC399

This comment was marked as resolved.

@smainil
Copy link
Collaborator Author

smainil commented Dec 11, 2024

@MikeMcC399 just did it

@smainil
Copy link
Collaborator Author

smainil commented Jan 6, 2025

@tcort would it be possible to review changes and valide them if it's OK for you ?

@nadimchakra
Copy link

nadimchakra commented Jan 31, 2025

Can someone merge this to master please ????????????
@bobrik @tcort @emdneto

@MikeMcC399 MikeMcC399 mentioned this pull request Jan 31, 2025
@smainil smainil merged commit 263b5d0 into tcort:master Feb 25, 2025
@@ -288,7 +288,7 @@ async function processInput(filenameForOutput, stream, opts) {
opts.retryCount = config.retryCount;
opts.fallbackRetryDelay = config.fallbackRetryDelay;
opts.aliveStatusCodes = config.aliveStatusCodes;
opts.reporters = config.reporters;
opts.reporters = config.reporters ?? opts.reporters;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@smainil I wonder whether this fix might be applicable to the config options?

Also, the behaviour of that whole if (opts.config) block can be deleted and no tests fail, we might want to increase the test coverage.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@WillGibson definitely agree about the test coverage. I wanted to quickly fix this regression because lots of people are impacted

Copy link
Collaborator

Choose a reason for hiding this comment

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

I accept that pragmatism.

I think a lot of these values are defaulted here and the others should use the same null coalescing where that is the case. Otherwise the same problem is likely to occur with them.

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.

Version 3.13.5 seems to break when using config file
6 participants