Skip to content

test data ingestion: make GetBuilds generic and support untagged queued builds#16298

Merged
shuyama1 merged 5 commits into
mainfrom
fix_teamcity_queued_locator
Feb 5, 2026
Merged

test data ingestion: make GetBuilds generic and support untagged queued builds#16298
shuyama1 merged 5 commits into
mainfrom
fix_teamcity_queued_locator

Conversation

@shuyama1

@shuyama1 shuyama1 commented Feb 4, 2026

Copy link
Copy Markdown
Member

Refactored GetBuilds to support dynamic url parameters. This change enabled us to remove the tag:cron-trigger requirement specifically for Queued build checks to resolve the issue where queued builds could not be retrieved with the tag filter.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@shuyama1 shuyama1 changed the title fix nightly test checks to support untagged queued builds test data ingestion: make GetBuilds generic and support untagged queued builds Feb 4, 2026
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

1 similar comment
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@shuyama1 shuyama1 requested a review from melinath February 4, 2026 22:15
Comment thread .ci/magician/teamcity/get.go Outdated

func (tc *Client) GetBuilds(state, project, finishCut, startCut string) (Builds, error) {
url := fmt.Sprintf("https://hashicorp.teamcity.com/app/rest/builds?locator=state:%s,count:500,tag:cron-trigger,project:%s,branch:refs/heads/nightly-test,queuedDate:(date:%s,condition:before),queuedDate:(date:%s,condition:after)&fields=build(id,buildTypeId,buildConfName,webUrl,number,queuedDate,startDate,finishDate)", state, project, finishCut, startCut)
func (tc *Client) GetBuilds(locator, fields string) (Builds, error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you could use net/url Values struct here instead of manually building the string: https://pkg.go.dev/net/url#Values

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated! Thanks!

@shuyama1 shuyama1 force-pushed the fix_teamcity_queued_locator branch 3 times, most recently from c577f56 to 1a7af71 Compare February 4, 2026 23:23
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

3 similar comments
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@shuyama1 shuyama1 requested a review from melinath February 4, 2026 23:34
@shuyama1 shuyama1 enabled auto-merge February 5, 2026 00:04
@shuyama1 shuyama1 disabled auto-merge February 5, 2026 00:32
@shuyama1 shuyama1 enabled auto-merge February 5, 2026 00:32
@shuyama1 shuyama1 force-pushed the fix_teamcity_queued_locator branch from 1a7af71 to 220cb5b Compare February 5, 2026 00:34
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@shuyama1 shuyama1 added this pull request to the merge queue Feb 5, 2026
Merged via the queue into main with commit 264453f Feb 5, 2026
25 checks passed
@shuyama1 shuyama1 deleted the fix_teamcity_queued_locator branch February 5, 2026 01:13
NandiniAgrawal15 pushed a commit to NandiniAgrawal15/magic-modules that referenced this pull request Feb 5, 2026
wuchris-g pushed a commit to wuchris-g/magic-modules that referenced this pull request Feb 5, 2026
JianweiQ pushed a commit to JianweiQ/magic-modules that referenced this pull request Feb 20, 2026
kefang2 pushed a commit to kefang2/magic-modules that referenced this pull request Feb 28, 2026
aditikumarii-google pushed a commit to aditikumarii-google/magic-modules that referenced this pull request Mar 10, 2026
ChuAmberZhang pushed a commit to ChuAmberZhang/magic-modules that referenced this pull request Apr 29, 2026
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.

3 participants