Skip to content

fix(CI): add missing jira-url for junit2jira#19453

Merged
janisz merged 1 commit intomasterfrom
add_jira_url
Mar 17, 2026
Merged

fix(CI): add missing jira-url for junit2jira#19453
janisz merged 1 commit intomasterfrom
add_jira_url

Conversation

@janisz
Copy link
Contributor

@janisz janisz commented Mar 17, 2026

Description

We need to configure new Jira URL for junit2jira. The default one is working but not for all endpoints.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Old

$ go run ./cmd/junit2jira 
	-base-link "https://github.com/stackrox/stackrox/commit/3869db2572ee33fb7bf76e6027f8d133e23a56a2" \
	-build-id "23158926371" \
	-build-link "https://github.com/stackrox/stackrox/actions/runs/23158926371" \
	-build-tag "19303/merge@3869db2572ee33fb7bf76e6027f8d133e23a56a2"  \
	-csv-output "blah.csv"  \
	-job-name "gke-upgrade-tests-central"  \ 
	-junit-reports-dir "/tmp/gke-upgrade-tests-postgres/junit-reports" \
	-dry-run 
INFO[Mar 17 11:33:44] Using Basic Auth (email + API token)
INFO[Mar 17 11:33:44] Found 1 failed tests
ERRO[Mar 17 11:33:45] Server response: {"errorMessages":["Unbounded JQL queries are not allowed here. Please add a search restriction to your query."],"errors":{}}  StatusCode=400 error="client: atlassian invalid payload"
FATA[Mar 17 11:33:45] could not create issues or comments: 1 error occurred:
        * could not search: client: atlassian invalid payload

exit status 1

New:

$ $ go run ./cmd/junit2jira 
	-base-link "https://github.com/stackrox/stackrox/commit/3869db2572ee33fb7bf76e6027f8d133e23a56a2" \
	-build-id "23158926371" \
	-build-link "https://github.com/stackrox/stackrox/actions/runs/23158926371" \
	-build-tag "19303/merge@3869db2572ee33fb7bf76e6027f8d133e23a56a2"  \
	-csv-output "blah.csv"  \
	-job-name "gke-upgrade-tests-central"  \ 
	-junit-reports-dir "/tmp/gke-upgrade-tests-postgres/junit-reports" \
	-dry-run \
	-jira-url "https://redhat.atlassian.net/"
INFO[Mar 17 11:33:55] Using Basic Auth (email + API token)
INFO[Mar 17 11:33:55] Found 1 failed tests
INFO[Mar 17 11:33:55] Found issue. Creating a comment...            ID=ROX-27052 summary="Check unexpected pod restarts / pod  central - container  central FAILED"

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz janisz requested a review from a team as a code owner March 17, 2026 10:38
@janisz janisz requested review from msugakov and porridge and removed request for a team and msugakov March 17, 2026 10:38
@janisz janisz changed the title fix(CI): add missing jir-url fix(CI): add missing jir-url for junit2jira Mar 17, 2026
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The Jira base URL is now hardcoded in two places; consider centralizing it in a shared variable or configuration so that changing it in the future doesn’t require updating multiple call sites.
  • For the GitHub Action, it may be more flexible to expose jira-url as an action input (with a default) rather than hardcoding the URL, so different environments or forks can override it if needed.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The Jira base URL is now hardcoded in two places; consider centralizing it in a shared variable or configuration so that changing it in the future doesn’t require updating multiple call sites.
- For the GitHub Action, it may be more flexible to expose `jira-url` as an action input (with a default) rather than hardcoding the URL, so different environments or forks can override it if needed.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@msugakov msugakov changed the title fix(CI): add missing jir-url for junit2jira fix(CI): add missing jira-url for junit2jira Mar 17, 2026
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 771e7c7.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-342-g771e7c7a11.

@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.37%. Comparing base (16dac47) to head (771e7c7).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19453      +/-   ##
==========================================
- Coverage   49.38%   49.37%   -0.01%     
==========================================
  Files        2713     2713              
  Lines      204925   204925              
==========================================
- Hits       101206   101190      -16     
- Misses      96191    96201      +10     
- Partials     7528     7534       +6     
Flag Coverage Δ
go-unit-tests 49.37% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@janisz janisz requested a review from msugakov March 17, 2026 11:29
@janisz janisz enabled auto-merge (squash) March 17, 2026 11:29
@msugakov
Copy link
Contributor

@janisz janisz added auto-merge Auto-merge minor and patch version bumps auto-retest PRs with this label will be automatically retested if prow checks fails labels Mar 17, 2026
Copy link
Contributor

@guzalv guzalv left a comment

Choose a reason for hiding this comment

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

🙏

@janisz janisz merged commit 5dfb1ba into master Mar 17, 2026
104 of 112 checks passed
@janisz janisz deleted the add_jira_url branch March 17, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review area/ci auto-merge Auto-merge minor and patch version bumps auto-retest PRs with this label will be automatically retested if prow checks fails

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants