-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into multi_run
- Loading branch information
Showing
35 changed files
with
458 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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,14 @@ | ||
# The problem | ||
Write a short summary about what the reported problem/enhancement is. | ||
|
||
# Expected Behaviour | ||
How should the program behave when it encounters | ||
this issue? | ||
|
||
# Actual Behaviour | ||
Describe how the program currently behaves when it | ||
encounters this issue. | ||
|
||
# Screenshots or Relevant Logs | ||
When applicable, attach a screenshot or relevant logs of | ||
the issue. |
This file contains 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,16 @@ | ||
# Description | ||
What does this PR do? Give a short summary | ||
|
||
# Before/After Comparison | ||
Give some examples of the before/after behavior | ||
of the program. | ||
|
||
# Clerical Stuff | ||
Mention the issue this PR works toward resolving. If the | ||
PR completely solves the issue, use "This closes #x" | ||
to close the issue out automatically. | ||
|
||
Mention the JIRA ticket of the issue, this helps keep | ||
everything together so we can find this PR easily. | ||
|
||
Relates to JIRA: RPOPC-<TICKET_NUMBER> |
This file contains 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,20 @@ | ||
name: Verify group review | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
|
||
env: | ||
TARGET_LABEL: 'group_review_lgtm' | ||
|
||
jobs: | ||
check_review_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "::error Missing review label" && exit 1 | ||
if: "!contains(github.event.pull_request.labels.*.name, env.TARGET_LABEL)" | ||
|
||
- run: echo "Has review label" | ||
|
This file contains 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,58 @@ | ||
name: Update parent issue | ||
|
||
permissions: | ||
issues: write | ||
|
||
env: | ||
ISSUE_STATE: pr_inprogress | ||
REMOVE_ISSUES: --remove-label pr_approved --remove-label pr_review --remove-label pr_inprogress | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- review_requested | ||
pull_request_review: | ||
types: | ||
- submitted | ||
jobs: | ||
update_parent_issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get PR number on issue type | ||
if: github.event_name == 'pull_request_review' | ||
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> "$GITHUB_ENV" | ||
|
||
- name: Get PR number on PR event | ||
if: github.event_name == 'pull_request_target' | ||
run: echo "PR_NUMBER=${{ github.event.number }}" >> "$GITHUB_ENV" | ||
|
||
- name: Get parent issues | ||
shell: bash | ||
run: > | ||
echo PARENT_ISSUES=$( | ||
./ci/get_parent_issue.sh | ||
$PR_NUMBER | ||
) >> $GITHUB_ENV | ||
- name: Fail when unable to find a parent issue | ||
if: env.PARENT_ISSUES == '' | ||
run: echo "Could not find a parent issue" && exit 1 | ||
|
||
- name: Get PR states | ||
run: > | ||
echo PR_STATUS=pr_$( | ||
gh pr view $PR_NUMBER --json reviewRequests,latestReviews | | ||
python ./ci/determine_status.py | ||
) >> $GITHUB_ENV | ||
- name: Set parent issues state | ||
run: > | ||
for issue in $PARENT_ISSUES; do | ||
echo "Updating $issue to $PR_STATUS" && | ||
gh issue edit $issue $REMOVE_ISSUES && | ||
gh issue edit $issue --add-label=$PR_STATUS | ||
done | ||
This file contains 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,29 @@ | ||
name: Verify PR has JIRA ticket and issue number | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write # Need write to make comments | ||
|
||
jobs: | ||
pr_issue_jira: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: redhat-performance/pr-requirements | ||
path: pr-requirements | ||
ref: v1.0.0 | ||
- uses: ./pr-requirements | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jira_ticket: true | ||
jira_project: RPOPC | ||
jira_url: https://issues.redhat.com |
This file contains 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 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 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 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 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 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 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 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,10 @@ | ||
--- | ||
# tasks file for termination on failure | ||
|
||
- name: First,log to the error log | ||
cmd: "echo Fatal error: {{ exit_msg }} >> {{ working_dir }}/error_log" | ||
|
||
- name: Aborting test | ||
fail: | ||
msg: "{{ exit_msg }}" | ||
|
This file contains 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 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
Oops, something went wrong.