-
Notifications
You must be signed in to change notification settings - Fork 97
TRT-2381: prereqs for symptoms writing job labels #3174
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
Merged
openshift-merge-bot
merged 7 commits into
openshift:main
from
sosiouxme:20251216-label-symptoms-CF
Jan 5, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
518a582
🤖 create sippyclient for accessing sippy API
sosiouxme 846291a
jobartifacts: factor out OpenArtifactReader for reuse
sosiouxme 4e92c41
jobartifacts: add MatchedContent.HasMatches()
sosiouxme fd5ea78
jobartifacts: pass request ctx to GCS lookup
sosiouxme 9a1ed92
jobrunannotator: factor jobRunAnnotation out to db.models for reuse
sosiouxme 9b2e3ff
jobrunannotator: add new job_labels fields
sosiouxme f487f04
jobrunannotator: adjust label comment to uniform format
sosiouxme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| package models | ||
|
|
||
| import ( | ||
| "cloud.google.com/go/civil" | ||
| ) | ||
|
|
||
| // JobRunLabel represents a label applied to a job run, stored in BigQuery's job_labels table. | ||
| type JobRunLabel struct { | ||
| ID string `bigquery:"prowjob_build_id"` | ||
| StartTime civil.DateTime `bigquery:"prowjob_start"` | ||
| Label string `bigquery:"label"` | ||
| Comment string `bigquery:"comment"` | ||
| User string `bigquery:"user"` | ||
| CreatedAt civil.DateTime `bigquery:"created_at"` | ||
| UpdatedAt civil.DateTime `bigquery:"updated_at"` | ||
| SourceTool string `bigquery:"source_tool"` | ||
| SymptomID string `bigquery:"symptom_id"` | ||
| URL string `bigquery:"-"` | ||
| } | ||
|
|
||
| // [2025-12-22] To update the BigQuery table schema, use: | ||
| // | ||
| // bq update <project>:<dataset>.job_labels \ | ||
| // created_at:DATETIME,updated_at:DATETIME,source_tool:STRING,symptom_id:STRING | ||
| // | ||
| // Or via SQL: | ||
| // | ||
| // ALTER TABLE `<project>.<dataset>.job_labels` | ||
| // ADD COLUMN IF NOT EXISTS created_at DATETIME, | ||
| // ADD COLUMN IF NOT EXISTS updated_at DATETIME, | ||
| // ADD COLUMN IF NOT EXISTS source_tool STRING, | ||
| // ADD COLUMN IF NOT EXISTS symptom_id STRING; | ||
|
Comment on lines
+21
to
+32
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use this to update the schema before this merges. |
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.