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

refactor(checks): move global target merging responsibility to checks #278

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lvlcn-t
Copy link
Collaborator

@lvlcn-t lvlcn-t commented Mar 23, 2025

Motivation

Closes #100

I've also added global target merging for the traceroute check, as we didn't enrich the targets yet.

Changes

This commit moves the responsibility of merging global targets with the configured targets to each check. This way the checks can decide how to merge the global targets with the configured targets.

Signed-off-by: lvlcn-t 75443136+lvlcn-t@users.noreply.github.com

For additional information look at the commits.

Tests done

I've added an additional test case for the traceroute enrichment.

  • Unit tests succeeded
  • E2E tests succeeded - we have none for this

TODO

  • I've assigned this PR to myself
  • I've labeled this PR correctly

Sorry, something went wrong.

This commit moves the responsibility of merging global targets with the configured targets to each check. This way the checks can decide how to merge the global targets with the configured targets.

Signed-off-by: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com>
@lvlcn-t lvlcn-t added refactoring Refactoring of existing code area/checks Issues/PRs related to Checks labels Mar 23, 2025
@lvlcn-t lvlcn-t self-assigned this Mar 23, 2025
This commit uses the target.String() representation in error logs to make the error messages more readable.

Signed-off-by: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/checks Issues/PRs related to Checks refactoring Refactoring of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: Move global target merging responsibility to checks
1 participant