Repository navigation
Consider --results-directory before configuration - #5201
Conversation
9a60123 to
832d680
Compare
832d680 to
a00a90d
Compare
Amaury Levé (Evangelink)
left a comment
There was a problem hiding this comment.
Marco Rossignoli (@MarcoRossignoli) I recall we discussed that and I thought we ended up with:
- Env var wins over
- CLI args that wins over
- config file
Do I recall incorrectly?
Currently, config file is winning over CLI. The PR brings the behavior you describe where CLI wins over config file. I don't see results directory being controllable via env variable so the env variable part is irrelevant here for this specific case. |
|
Yes, env > cli > config file So file config can be committed and implicit (#3559), overriden by commandline parameters, either from cli or script or from ci yml, we also discuss it here: #3499 (comment) |
|
/backport to rel/3.8 |
|
Started backporting to rel/3.8: https://github.com/microsoft/testfx/actions/runs/13764460399 |
|
Youssef Fahmy (@Youssef1313) backporting to rel/3.8 failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Consider `--results-directory` before configuration
Using index info to reconstruct a base tree...
M src/Platform/Microsoft.Testing.Platform/Configurations/AggregatedConfiguration.cs
M src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs
M test/UnitTests/Microsoft.Testing.Platform.UnitTests/Configuration/AggregatedConfigurationTests.cs
Falling back to patching base and 3-way merge...
Auto-merging test/UnitTests/Microsoft.Testing.Platform.UnitTests/Configuration/AggregatedConfigurationTests.cs
Auto-merging src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs
Auto-merging src/Platform/Microsoft.Testing.Platform/Configurations/AggregatedConfiguration.cs
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Platform/Configurations/AggregatedConfiguration.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Consider `--results-directory` before configuration
Error: The process '/usr/bin/git' failed with exit code 128NOTE: A PR will be created, but needs to be revised manually! |
Fixes #5189