Remove legacy config path migration and fallbacks - #5609
Conversation
|
@codebien Is there something I am missing? Edit: |
|
@janHildebrandt98 the fix is now merged, consider to rebase your pull request. |
c7c6a6e to
552ed68
Compare
552ed68 to
dd87944
Compare
|
@codebien |
|
@codebien |
codebien
left a comment
There was a problem hiding this comment.
Hey thanks for you contribution!
| assert.ErrorIs(t, err, fs.ErrNotExist) | ||
| } | ||
|
|
||
| func TestLoadConfig(t *testing.T) { |
There was a problem hiding this comment.
We want to keep the testing for the current path. We should only drop the ones related to the legacy.
There was a problem hiding this comment.
TestLoadConfig() tested the loadConfig() method which I removed because it was just a wrapper around readDiskConfig() to decide from where to load the config (legacy vs. new).
Thats why I think the whole test is obsolete now. The logic is sufficiently tested by the tests for readDiskConfig() which is now called everywhere directly.
Yep, we are aware of it. I'm going to rebase v2, as soon as possible. |
|
|
23f0fec to
a1c4b1c
Compare
|
@codebien |
What?
Removed all code responsible for handling migration from the old legacy config file path to the new one.
Also dropped fallback logic.
Why?
The migration/fallback was intended to stick around for v1 only and, as a breaking change with v2, we are now intentionally removing it to simplify the code.
Checklist
make check) and all pass.Checklist: Documentation (only for k6 maintainers and if relevant)
Please do not merge this PR until the following items are filled out.
Related PR(s)/Issue(s)
Closes #5572