Simplify Lib classes by TavoNiievez · Pull Request #6767 · Codeception/Codeception · GitHub
Skip to content

Simplify Lib classes - #6767

Merged
TavoNiievez merged 1 commit into
Codeception:mainfrom
TavoNiievez:5.2_lib
Nov 10, 2024
Merged

TavoNiievez merged 1 commit into
Codeception:mainfrom
TavoNiievez:5.2_lib

Conversation

@TavoNiievez

Copy link
Copy Markdown
Member

300 additions & 419 deletions.

@TavoNiievez
TavoNiievez requested a review from Naktibalda June 30, 2024 19:27
@DavertMik

Copy link
Copy Markdown
Member

@SamMousa

SamMousa commented Sep 11, 2024 •

Copy link
Copy Markdown
Collaborator
  • Trusted contributor
  • Changes look reasonable
  • Tests pass

I'd say just merge this!

@SamMousa

Copy link
Copy Markdown
Collaborator

@TavoNiievez what's your confidence level on this? Can I go ahead and merge this or do you feel there's specific things that need an extra good look?

@TavoNiievez

Copy link
Copy Markdown
Member Author

@SamMousa Well, I had gotten used to Naktibalda checking me this kind of PR where I change many things at once, since he is (or was?) who had a more general knowledge about what is susceptible to generate problems if changed, even if the tests are going OK.

If I had to answer your question I would say 85% sure that all changes were applied safely.

@SamMousa

Copy link
Copy Markdown
Collaborator

I'm gonna defer to him, and gonna ping him hoping he'll give the okay then! @Naktibalda you up for reviewing this?

@TavoNiievez

Copy link
Copy Markdown
Member Author

@TavoNiievez
TavoNiievez merged commit fc707f5 into Codeception:main Nov 10, 2024
garvinhicking added a commit to garvinhicking/Codeception that referenced this pull request Feb 17, 2025
This is a regression bugfix for release 5.2.0.

With Codeception#6767 the ParamsLoader was streamlined, but when previously `$paramsFile` was passed to the loader methods, now only `$paramStorage` is passed, which misses getting converted to an absolute path via `codecept_absolute_path()`.

This patch restores utilizing `$paramsFile` and also uses that to emit warnings when a file cannot be loaded.

This bug caused missing file resolving, because software like TYPO3 for example executes tests from the repo directory `typo3/sysext/core/Tests/codeception.yml` and uses:

```
params:
  - parameters.yml
  - env.yml
```

and expects that the file is found next to the `codeception.yml` file in the same directory, and thus a breaking change.
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.

4 participants