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

TeamCity: Usability improvements : tag builds to distinguish nightly builds vs ad hoc builds, add project descriptions #15613

Conversation

modular-magician
Copy link
Collaborator

This PR is to address two areas where users of the new project might be confused:

  • Understanding what the new projects are used for
  • Understanding which builds are relevant to a release cut, when the timing of builds isn't strongly related to being a nightly test anymore.

To address these problems I'm going to add descriptions to projects in TeamCity, and also add a step to build configurations so they automatically tag themselves based on how they're triggered.

Builds triggered by the cron schedule at night will be labelled nightly-YYYY-MM-DD nightly-test, with the date in the tag. All other builds are tagged with one-off-build. Builds know if they're triggered by cron or not based on whether there's details about a user who triggered a given build (directly or indirectly, via dependencies)

Here's a test project where I set this up - if you trigger a build it'll be tagged appropriately. Note: this project has none of the ENVs set up, so all the builds will fail their tests but they'll be able to do the tagging fine.

Screenshot 2023-08-24 at 11 50 51

If this PR is for Terraform, I acknowledge that I have:

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#8685

…builds vs ad hoc builds, add project descriptions (hashicorp#8685)

* Add ability to tag TeamCity builds based on whether they're automated or ad-hoc. Nightly builds tagged with the date.

* Add ability to set project descriptions using a context parameter

* Refactor how date is formatted, to avoid problem where TeamCity interprets `%Y-%` as interpolating a `Y-` parameter

* Remove use of `TRIGGERED_BY`; value in build didn't match UI and isn't useful

* Update tag for nightly test builds to be static/consistent

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 87a908f into hashicorp:main Aug 24, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
@modular-magician modular-magician deleted the downstream-pr-72d9661eebf46d2c74961dae3f1d06daf2f6d634 branch November 17, 2024 00:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant