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

addressing more comments related to metrics pr #3126

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

normen662
Copy link
Contributor

No description provided.

@@ -75,7 +76,8 @@ public void beforeAll(final ExtensionContext context) throws Exception {
maintainConfigs = List.of(
new CorrectExplains(new EmbeddedConfig()),
new CorrectMetrics(new EmbeddedConfig()),
new CorrectExplainsAndMetrics(new EmbeddedConfig())
new CorrectExplainsAndMetrics(new EmbeddedConfig()),
new ShowPlanOnDiff(new EmbeddedConfig())
Copy link
Collaborator

Choose a reason for hiding this comment

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

The show-plan-on-diff config seems different enough that you wouldn't want to run it in the same step as running explain or metrics correction

Copy link
Contributor Author

@normen662 normen662 Feb 10, 2025

Choose a reason for hiding this comment

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

The configs in here do not run in succession. You can use the maintain annotation to pick the configs from here you want to run.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh okay, I see. I was confused by the flow here, but I think I understand:

  1. The maintainConfigs lists all possible configurations that you'd want to run to maintain the files. In this way, ShowPlanOnDiff is a bit different, because it never updates any of the pre-existing files, but it is kind of a Debug setting--one that you wouldn't want to run normally.
  2. The annotation has a value that it sets
  3. When choosing the set of tests to run, it filters out the maintainConfigs that don't align with its value

There is still something about this that feels a bit wrong, design wise. (I agree that it achieves the intended result.) Like, it feels like the annotation choice should result in the appropriate config being created, rather than filtering out all of the configs that aren't the one we want. It's also a bit strange that it happens when the configuration is invoked rather than when the configuration is created. But I see what you're getting at here.

@normen662 normen662 merged commit 83eb5ff into FoundationDB:main Feb 10, 2025
1 check passed
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.

2 participants