Skip to content

NO-JIRA: Remove sync with github ci-flake#181

Open
maayanf24 wants to merge 2 commits into
openshift:mainfrom
maayanf24:remove-ci-sync
Open

NO-JIRA: Remove sync with github ci-flake#181
maayanf24 wants to merge 2 commits into
openshift:mainfrom
maayanf24:remove-ci-sync

Conversation

@maayanf24

@maayanf24 maayanf24 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor
  1. Remove the option to sync with ci-flake from github
  2. Update custom-field id post jira migration

Summary by CodeRabbit

  • Documentation

    • Updated jira-scripts documentation with revised CLI help text, example command usage, and corrected default execution behavior.
  • Chores

    • Removed GitHub issue synchronization processing from the network_bugs_overview script.
    • Adjusted the unassigned Jira bug selection/reporting behavior.
    • Updated the Jira field used to determine bug severity in the bot-assigned listings.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 4, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@maayanf24: This pull request explicitly references no jira issue.

Details

In response to this:

  1. Remove the option to sync with ci-flake from github
  2. Update custom-field id post jira migration

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 29ef1a5e-5ccc-46fe-9e60-2f386118ca8c

📥 Commits

Reviewing files that changed from the base of the PR and between ffe1de9 and 2aab71f.

📒 Files selected for processing (2)
  • jira-scripts/README.md
  • jira-scripts/network_bugs_overview
🚧 Files skipped from review as they are similar to previous changes (1)
  • jira-scripts/README.md

Walkthrough

The PR removes GitHub issue synchronization processing from the network_bugs_overview script by deleting GitHub-related constants and queries, updates severity field references across bug listing functions to use a different Jira custom field, removes the --process-github-issues CLI argument, and updates documentation to match these changes.

Changes

GitHub Processing Removal and Severity Field Update

Layer / File(s) Summary
Remove GitHub constants and update Jira queries
jira-scripts/network_bugs_overview
Module-level constants JIRA_EPIC_FOR_GITHUB_ISSUES, GITHUB_ISSUES_LABEL, GITHUB_TO_JIRA_USERS, and USERNAME_TO_ACCOUNT_ID are deleted. init_queries() no longer includes GitHub-tracked Jira stories in the JIRA_BUGS query list. retrieve_unassigned_jira_bugs() stops fetching upstream stories and returns only the primary bug query results.
Update severity field references
jira-scripts/network_bugs_overview
Jira severity field constant changes from customfield_12316142 to customfield_10840. Bug listing functions list_old_bot_bugs() and list_recent_bug_comments() are updated to extract severity from the new field.
Remove GitHub CLI argument and update parsing
jira-scripts/network_bugs_overview
CLI argument parser removes the --process-github-issues option. Parameter defaults computation in parse_input_args() no longer includes process_github_issues handling; output flags are now computed from the remaining options (jira_bugs, jira_escalations, new_bugs, quick) plus existing no-args defaults.
Remove GitHub execution path from main()
jira-scripts/network_bugs_overview
main() no longer conditionally invokes process_github_issues() based on parsed parameters.
Update README documentation
jira-scripts/README.md
CLI usage documentation now includes --old-bugs flag. Example command is changed from --process-github-issues --quick to --jira-bugs --quick. Default execution behavior documentation is rewritten to remove GitHub processing mention and show only Jira-assigned-bugs ranking and new-bugs output steps.

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: removing GitHub CI-flake synchronization functionality, which aligns with the primary modifications across both the README and the script.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR contains no Ginkgo test files. Changes are limited to Python scripts and markdown documentation in jira-scripts directory; custom check is not applicable.
Test Structure And Quality ✅ Passed This PR contains no Ginkgo test code. Changes are limited to Python script (jira-scripts/network_bugs_overview) and documentation (jira-scripts/README.md). The custom check is not applicable.
Microshift Test Compatibility ✅ Passed Check is not applicable: PR contains no new Ginkgo e2e tests. Changes are limited to Python script (jira-scripts/network_bugs_overview) and documentation (README.md) modifications.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR modifies Python scripts and documentation only (jira-scripts/network_bugs_overview, jira-scripts/README.md). It contains no Ginkgo e2e tests, so the SNO compatibility check does not apply.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies only Jira utility scripts, documentation, and build config—no deployment manifests, operator code, or scheduling constraints present.
Ote Binary Stdout Contract ✅ Passed This PR modifies only Python scripts (jira-scripts/README.md and jira-scripts/network_bugs_overview) and does not contain any Go code or OpenShift Tests Extension test structures. The OTE Binary St...
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR modifies jira-scripts/README.md and jira-scripts/network_bugs_overview (a Python script), not Ginkgo e2e tests. The IPv6 and disconnected network compatibility check applies only to new Gin...
No-Weak-Crypto ✅ Passed The PR modifies documentation (README.md) and a Python script (network_bugs_overview) to remove GitHub sync and update Jira field IDs. No cryptographic operations, weak crypto algorithms (MD5, SHA1...
Container-Privileges ✅ Passed PR modifies only jira-scripts documentation and Python code; no container/K8s manifests present that could contain privileged configurations.
No-Sensitive-Data-In-Logs ✅ Passed No new logging that exposes passwords, tokens, API keys, PII, session IDs, hostnames, or customer data was added in this PR. The PR removes GitHub sync code and updates Jira field IDs without intro...

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci Bot requested review from jluhrsen and martinkennelly June 4, 2026 08:40
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 4, 2026
@openshift-ci

openshift-ci Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Hi @maayanf24. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
jira-scripts/README.md (1)

46-46: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove stale [-g] from usage docs to match current CLI.

The usage line still advertises [-g], but parse_input_args() no longer defines that flag. This leaves the README inconsistent with the script interface and the PR objective.

Suggested doc fix
-usage: network_bugs_overview [-h] [--jira-bugs] [--jira-escalations] [-v] [-q] [-n] [-g] [--old-bugs]
+usage: network_bugs_overview [-h] [--jira-bugs] [--jira-escalations] [-v] [-q] [-n] [--old-bugs]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@jira-scripts/README.md` at line 46, The README usage line still includes the
obsolete [-g] flag; remove the `[-g]` token from the usage string so it matches
the current CLI defined by parse_input_args(). Locate the usage example line
(the one starting with "usage: network_bugs_overview ...") and delete the `[-g]`
entry, ensuring the documented flags align exactly with those created in
parse_input_args().
jira-scripts/network_bugs_overview (1)

873-945: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Align the documented/default CLI behavior with what the parser now does.

default_str says only Jira bugs are fetched by default, but the default branch also sets new_bugs = True, and the provided jira-scripts/README.md:41-46 snippet still advertises [-g] even though this parser no longer defines it. Please sync the help text and README with the actual defaults/options so users do not get surprised by extra output or unrecognized flags.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@jira-scripts/network_bugs_overview` around lines 873 - 945, Update the CLI
help text and README to reflect the actual defaults and available flags: change
default_str and the help strings for the "--jira-bugs", "--jira-escalations",
and "--new-bugs" parser.add_argument calls so they state that both jira bugs and
new-bugs are returned by default (or clearly state the behavior when no flags
are passed), remove or update any README references to the obsolete "[-g]" flag,
and ensure the parser logic (the args -> jira_bugs, jira_escalations, new_bugs
assignment block around args and the default branch) and docs are consistent
about which flags enable which queries so users aren't misled by help text or
README.
🧹 Nitpick comments (1)
jira-scripts/network_bugs_overview (1)

117-117: ⚡ Quick win

Make the migrated severity field id a real constant.

The field id now lives in two string literals plus a commented-out constant, which makes the next Jira field migration easy to miss. Define SEVERITY_JIRA_FIELD once and reuse it in both call sites.

♻️ Proposed cleanup
-# SEVERITY_JIRA_FIELD = "customfield_10840"  # in OCPBUGS
+SEVERITY_JIRA_FIELD = "customfield_10840"  # in OCPBUGS
...
-                severity = getattr(bug.fields, 'customfield_10840', None)
+                severity = getattr(bug.fields, SEVERITY_JIRA_FIELD, None)
...
-                severity = getattr(bug.fields, 'customfield_10840', None)
+                severity = getattr(bug.fields, SEVERITY_JIRA_FIELD, None)

Also applies to: 982-982, 1041-1041

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@jira-scripts/network_bugs_overview` at line 117, Define a single constant
SEVERITY_JIRA_FIELD and use it in both places where the severity field id is
currently hardcoded as string literals (and remove or replace the commented-out
duplicate); update the two call sites that reference the literal field id to
reference SEVERITY_JIRA_FIELD instead so the migrated severity id is centralized
and only declared once.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@jira-scripts/network_bugs_overview`:
- Around line 873-945: Update the CLI help text and README to reflect the actual
defaults and available flags: change default_str and the help strings for the
"--jira-bugs", "--jira-escalations", and "--new-bugs" parser.add_argument calls
so they state that both jira bugs and new-bugs are returned by default (or
clearly state the behavior when no flags are passed), remove or update any
README references to the obsolete "[-g]" flag, and ensure the parser logic (the
args -> jira_bugs, jira_escalations, new_bugs assignment block around args and
the default branch) and docs are consistent about which flags enable which
queries so users aren't misled by help text or README.

In `@jira-scripts/README.md`:
- Line 46: The README usage line still includes the obsolete [-g] flag; remove
the `[-g]` token from the usage string so it matches the current CLI defined by
parse_input_args(). Locate the usage example line (the one starting with "usage:
network_bugs_overview ...") and delete the `[-g]` entry, ensuring the documented
flags align exactly with those created in parse_input_args().

---

Nitpick comments:
In `@jira-scripts/network_bugs_overview`:
- Line 117: Define a single constant SEVERITY_JIRA_FIELD and use it in both
places where the severity field id is currently hardcoded as string literals
(and remove or replace the commented-out duplicate); update the two call sites
that reference the literal field id to reference SEVERITY_JIRA_FIELD instead so
the migrated severity id is centralized and only declared once.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 7bba49dd-3edc-4a36-b61e-672301f8ecc2

📥 Commits

Reviewing files that changed from the base of the PR and between b05fd62 and ffe1de9.

📒 Files selected for processing (2)
  • jira-scripts/README.md
  • jira-scripts/network_bugs_overview

Remove the option to sync with ci-flake from github
Update custom-field id post jira migration

Signed-off-by: Maayan Friedman <maafried@redhat.com>
@arghosh93

Copy link
Copy Markdown
Contributor

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 9, 2026
@maayanf24

Copy link
Copy Markdown
Contributor Author

/retest-required

1 similar comment
@maayanf24

Copy link
Copy Markdown
Contributor Author

/retest-required

@arghosh93 arghosh93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@openshift-ci

openshift-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arghosh93, maayanf24

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 10, 2026
@maayanf24

Copy link
Copy Markdown
Contributor Author

/verified by @maayanf24

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@maayanf24: Jira verification commands are restricted to collaborators for this repo.

Details

In response to this:

/verified by @maayanf24

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Comment thread jira-scripts/network_bugs_overview Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks like you can delete this whole struct as well, since the only place it's used seems to be what you are removing below anyhow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. @jluhrsen - can you re-review?

Remove github_to_jira_users array from network-bugs
script

Signed-off-by: Maayan Friedman <maafried@redhat.com>
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@maayanf24: This pull request explicitly references no jira issue.

Details

In response to this:

  1. Remove the option to sync with ci-flake from github
  2. Update custom-field id post jira migration

Summary by CodeRabbit

  • Documentation

  • Updated jira-scripts documentation with revised CLI help text, example command usage, and corrected default execution behavior.

  • Chores

  • Removed GitHub issue synchronization processing from the network_bugs_overview script.

  • Adjusted the unassigned Jira bug selection/reporting behavior.

  • Updated the Jira field used to determine bug severity in the bot-assigned listings.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci

openshift-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

@maayanf24: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants