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

fix(ci): always run IT suite when in a merge group #22368

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

pront
Copy link
Member

@pront pront commented Feb 5, 2025

Summary

Always run the integration test suite before merging the PR.
Arguably, this can be optimized by keeping track of dependencies per test but this way merging is safer and can detect bugs caused by dependency updates.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

How did you test this PR?

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the "no-changelog" label to this PR.

Checklist

  • Please read our Vector contributor resources.
    • make check-all is a good command to run locally. This check is
      defined here. Some of these
      checks might not be relevant to your PR. For Rust changes, at the very least you should run:
      • cargo fmt --all
      • cargo clippy --workspace --all-targets -- -D warnings
      • cargo nextest run --workspace (alternatively, you can run cargo test --all)
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run dd-rust-license-tool write to regenerate the license inventory and commit the changes (if any). More details here.

References

Ref: #22242 (comment)

@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Feb 5, 2025
@pront pront requested a review from a team as a code owner February 5, 2025 15:53
@pront pront requested a review from jszwedko February 5, 2025 15:54
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

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

Actually, the base_ref and head_ref won't be right when ran by the MQ. You may need to check changes.yml to make sure it isn't expecting to be run only by pull requests, too.

@pront
Copy link
Member Author

pront commented Feb 5, 2025

Actually, the base_ref and head_ref won't be right when ran by the MQ. You may need to check changes.yml to make sure it isn't expecting to be run only by pull requests, too.

Great catch. I implemented your suggestion in 939be7c (per https://docs.github.com/en/webhooks/webhook-events-and-payloads#merge_group)

@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented Feb 5, 2025

Datadog Report

Branch report: pront/fix-changes-if-cond-ci
Commit report: c819a6e
Test service: vector

✅ 0 Failed, 7 Passed, 0 Skipped, 25.46s Total Time

@pront pront added this pull request to the merge queue Feb 5, 2025
Merged via the queue into master with commit 1c1ded8 Feb 5, 2025
57 checks passed
@pront pront deleted the pront/fix-changes-if-cond-ci branch February 5, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants