Skip to content

add doc for trigger prow job manually#62

Open
bmeng wants to merge 1 commit into
openshift-online:mainfrom
bmeng:manual-job
Open

add doc for trigger prow job manually#62
bmeng wants to merge 1 commit into
openshift-online:mainfrom
bmeng:manual-job

Conversation

@bmeng

@bmeng bmeng commented May 26, 2026

Copy link
Copy Markdown
Contributor

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • CI/CD or tooling change

Testing

  • Unit tests pass (make test)
  • Integration tests pass (if applicable)
  • Manual verification completed

Checklist

  • My code follows the project's coding conventions
  • I have updated documentation as needed
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass

@openshift-ci openshift-ci Bot requested review from gdbranco and jfrazierRedHat May 26, 2026 07:53
@openshift-ci

openshift-ci Bot commented May 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bmeng

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 May 26, 2026
@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Documentation
    • Added a new guide explaining how to manually trigger OpenShift CI jobs via the Gangway CI API. Covers prerequisites for authentication, step-by-step login using OpenShift tooling, obtaining and using a bearer token, constructing an authenticated POST request, and ways to discover available job names from the release repository or CI dashboard.

Walkthrough

Added a new documentation page describing how to manually trigger OpenShift CI jobs via the Gangway API. The guide covers prerequisites, authentication steps using oc, curl request construction with bearer tokens, and instructions for discovering valid job names.

Changes

CI Triggering Documentation

Layer / File(s) Summary
Manual CI triggering guide
docs/trigger-prow-ci-manually.md
New markdown document explaining prerequisites, login procedures with OpenShift CLI and console, bearer token extraction, curl request examples, and methods for identifying available job names from the openshift/release repository and CI dashboard.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description contains only an unused template with no concrete details filled in, making it vague and uninformative about the actual changes. Fill in the PR description with details about the documentation added, including its purpose and key content covered in the new documentation page.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'add doc for trigger prow job manually' clearly and accurately describes the primary change—adding documentation for manually triggering Prow jobs.
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.

✏️ 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.

@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.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@docs/trigger-prow-ci-manually.md`:
- Around line 46-51: The fenced code block containing the curl POST example that
starts with ``` should include a language tag to satisfy markdownlint MD040;
change the opening fence from ``` to ```bash (the block that contains the curl
-X POST ... Authorization: Bearer $(oc whoami -t) ... /v1/executions) so the
snippet is correctly highlighted and linted.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 5fc24eff-7c24-4258-834b-365173079347

📥 Commits

Reviewing files that changed from the base of the PR and between aafa15f and ce25759.

📒 Files selected for processing (1)
  • docs/trigger-prow-ci-manually.md

Comment on lines +46 to +51
```
curl -X POST \
-H "Authorization: Bearer $(oc whoami -t)" \
-d '{"job_name": "periodic-ci-openshift-online-rosa-e2e-main-periodics-rosa-hcp-e2e-stable-4-21", "job_execution_type": "1"}' \
https://gangway-ci.apps.ci.l2s4.p1.openshiftapps.com/v1/executions
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a language tag to the example fenced block.

Line 46 opens a fenced code block without a language, which triggers markdownlint MD040.

Suggested fix
-```
+```bash
 curl -X POST \
   -H "Authorization: Bearer $(oc whoami -t)" \
   -d '{"job_name": "periodic-ci-openshift-online-rosa-e2e-main-periodics-rosa-hcp-e2e-stable-4-21", "job_execution_type": "1"}' \
   https://gangway-ci.apps.ci.l2s4.p1.openshiftapps.com/v1/executions
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 46-46: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 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 `@docs/trigger-prow-ci-manually.md` around lines 46 - 51, The fenced code block
containing the curl POST example that starts with ``` should include a language
tag to satisfy markdownlint MD040; change the opening fence from ``` to ```bash
(the block that contains the curl -X POST ... Authorization: Bearer $(oc whoami
-t) ... /v1/executions) so the snippet is correctly highlighted and linted.

Comment thread docs/trigger-prow-ci-manually.md Outdated

@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.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@docs/trigger-prow-ci-manually.md`:
- Line 51: The documented CI job name pattern is incorrect/inconsistent with the
example; update the text that currently states
"periodic-ci-openshift-release-main-nightly-<version>-<job>" to either present a
more general pattern or list multiple real patterns (e.g., include variants like
"periodic-ci-openshift-online-...-periodics-..." shown in the example). Edit the
sentence in docs/trigger-prow-ci-manually.md to replace the single hardcoded
pattern with a generalized description or a short list of known patterns and add
a note pointing readers to the openshift/release job definitions for exact job
names.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 37ea1271-177f-4cb2-9bd3-1515327683c0

📥 Commits

Reviewing files that changed from the base of the PR and between ce25759 and 1010563.

📒 Files selected for processing (1)
  • docs/trigger-prow-ci-manually.md


### Available Job Names

The CI job names follow the pattern `periodic-ci-openshift-release-main-nightly-<version>-<job>`. To find the exact job name, check the job definitions in the [openshift/release](https://github.com/openshift/release) repository or the CI dashboard.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

The job name pattern doesn't match the example provided.

The described pattern periodic-ci-openshift-release-main-nightly-<version>-<job> doesn't match the example periodic-ci-openshift-online-rosa-e2e-main-periodics-rosa-hcp-e2e-stable-4-21. Key differences include the organization segment (openshift-release vs openshift-online) and the type segment (nightly vs periodics).

Consider updating the pattern description to be more general or clarify that multiple patterns exist for different job types.

📝 Suggested revision
-The CI job names follow the pattern `periodic-ci-openshift-release-main-nightly-<version>-<job>`. To find the exact job name, check the job definitions in the [openshift/release](https://github.com/openshift/release) repository or the CI dashboard.
+The CI job names typically follow the pattern `periodic-ci-<org>-<repo>-<branch>-<job-type>-<job-details>`. For example, nightly jobs use `periodic-ci-openshift-release-main-nightly-<version>-<job>`, while periodic jobs may use different patterns. To find the exact job name, check the job definitions in the [openshift/release](https://github.com/openshift/release) repository or the CI dashboard.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The CI job names follow the pattern `periodic-ci-openshift-release-main-nightly-<version>-<job>`. To find the exact job name, check the job definitions in the [openshift/release](https://github.com/openshift/release) repository or the CI dashboard.
The CI job names typically follow the pattern `periodic-ci-<org>-<repo>-<branch>-<job-type>-<job-details>`. For example, nightly jobs use `periodic-ci-openshift-release-main-nightly-<version>-<job>`, while periodic jobs may use different patterns. To find the exact job name, check the job definitions in the [openshift/release](https://github.com/openshift/release) repository or the CI dashboard.
🤖 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 `@docs/trigger-prow-ci-manually.md` at line 51, The documented CI job name
pattern is incorrect/inconsistent with the example; update the text that
currently states "periodic-ci-openshift-release-main-nightly-<version>-<job>" to
either present a more general pattern or list multiple real patterns (e.g.,
include variants like "periodic-ci-openshift-online-...-periodics-..." shown in
the example). Edit the sentence in docs/trigger-prow-ci-manually.md to replace
the single hardcoded pattern with a generalized description or a short list of
known patterns and add a note pointing readers to the openshift/release job
definitions for exact job names.

@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

@bmeng: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocm-fvt-rosa-hcp-staging-ocm-fvt-periodic-cs-sanity-jira-staging-main 1010563 link true /test ocm-fvt-rosa-hcp-staging-ocm-fvt-periodic-cs-sanity-jira-staging-main

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants