8000 chore: refactor runner configuration by theseion · Pull Request #504 · coreruleset/go-ftw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: refactor runner configuration #504

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

Merged
merged 2 commits into from
Jun 9, 2025

Conversation

theseion
Copy link
Collaborator
@theseion theseion commented Jun 5, 2025

The check package is only used from the runner package. It makes sense to use TestRunContext and other types in check but that is not possible due to circular imports. Make check part of runner instead.

In addition, to reduce issues with cyclic imports and confusion between different configuration objects, the RunnerConfig now consolidates all configuration data for the test runner.

@theseion theseion requested review from M4tteoP and fzipi June 5, 2025 17:47
fzipi
fzipi previously approved these changes Jun 6, 2025
Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

That was a long one. Some nits.

fzipi
fzipi previously approved these changes Jun 7, 2025
Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

Thanks!

theseion added 2 commits June 9, 2025 17:10
The `check` package is only used from the `runner` package. It makes
sense to use `TestRunContext` and other types in `check` but that is not
possible due to circular imports. Make `check` part of `runner` instead.

In addition, to reduce issues with cyclic imports and confusion between
different configuration objects, the `RunnerConfig` now consolidates all
configuration data for the test runner.
@theseion theseion force-pushed the refactor-runner-configuration branch from 0bf9f43 to 42f1386 Compare June 9, 2025 15:10
@theseion theseion requested a review from fzipi June 9, 2025 15:10
@theseion theseion merged commit 62cb641 into coreruleset 7B93 :main Jun 9, 2025
4 checks passed
@theseion theseion deleted the refactor-runner-configuration branch June 9, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0