-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TeamCity: Ensure nightly tests use same git commit #10785
Conversation
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
PR is pretty much ready for review, the only concern I have is that it could be confusing for future users due to the date. the date is set based on UTC time zone. I added The next thing would be to add a sweeper that removes branches after two weeks. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
This PR has been waiting for review for 2 weekdays. Please take a look! Use the label |
Linking this build which has been using the it also prints out a A previous build can be seen here as well:
|
@BBBmau our nightly tests run every night of the week- the automation to add branches and the TeamCity CRON schedule should run every night |
Refer to these nightly tests that print the nightly-test branch name and commit hash from main, this simulates the behavior that we shall see when this PR gets merged into magic modules: The teamcity config that was applied can be found here: BBBmau/terraform-provider-google@4acef83 Apart from the changes made in order to output hello world for my forked branch, the change is exact to what's found in this PR. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
new linked PR allows static branch filtering: we now only build if we detect a branch that matches both rules: Once a period of time has passed (12 hours) the newly used branch for nightly tests will be renamed to match An explanation of the new gha workflow for this can be seen: hashicorp/terraform-provider-google#18447 Link to the TeamCity builds can be seen: https://hashicorp.teamcity.com/project/TerraformProviders_MauricioSTestProjectSameCommitNightlyTestsWork_GOOGLE_NIGHTLYTESTS?branch=refs%2Fheads%2FUTC-2024-06-14&mode=builds |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
1 similar comment
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
I took a look at builds from your test project and from this page I can see that a build running on the 18th picked up I believe that's because that's because the config in TeamCity was updated on the 17th to use the new branch names (I can see that the config in your TeamCity test project was updated on the 17th), so I think we should wait another day or two to confirm that refs/heads/UTC-2024-06-19 and refs/heads/UTC-2024-06-20 get used as expected. |
Agreed! The first successful branch creation and nightly build was |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Looks to be good now, we'll let it run tests over the weekend and determine whether it's ready based off of the weekend results. |
@SarahFrench update: Saw this morning that inactive builds were not being kept after removing a branch. I found this odd since the after looking into this more I realized that my assumption of The latest commit now uses We'll revisit this PR wednesday morning and consider merging once we see that inactive builds are still kept after the default age of 24 hours. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
1 similar comment
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
recent commit is based off of wanting to use a static branch filter naming for teamcity to use such as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me, but I think we need a final round of testing before merging.
I think it'd be good for us to force a scenario where the test project has multiple builds in the queue (from the cron trigger) and we merge new commits to main
in the provider repo that's being tested by those builds. If the later builds (that run after the new commit was added) use the same commit as the prior builds we'll know that we've solved the problem, and there'll be less risk of disrupting the nightly tests by merging this PR.
Lets pair on doing that in our next 1:1 and take it from there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a small problem that's an easy fix!
mmv1/third_party/terraform/.teamcity/components/builds/build_triggers.kt
Outdated
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
@BBBmau, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. If no action is taken, this PR will be closed in 28 days. This notification can be disabled with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to merge and release!
PR insures that nightly tests will run on a separate branch from main. The branch
nightly-test
will be created with a GHA job set interraform-google-provider
repo and each night the branch will be recreated from the tip of main. Effectively this tags a single commit for TeamCity to use in a given night's tests(Related PR: hashicorp/terraform-provider-google#18241 which must be merged first)New related PRs that need to be merged first:
teamcity-nightly
workflows to usenightly-test
as static branchFilter hashicorp/terraform-provider-google#19023Release Note Template for Downstream PRs (will be copied)