Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot committed Feb 6, 2022
1 parent b56725e commit 7041145
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .ci/scripts/update_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
# For more info visit https://github.com/pulp/plugin_template

import os
import sys
from github import Github

GH_ISSUES = sys.argv[1]

g = Github(os.environ.get("GITHUB_TOKEN"))
repo = g.get_repo("pulp/pulp_deb")

GH_ISSUES = os.environ.get("GH_ISSUES")

for issue in GH_ISSUES.split(","):
issue = repo.get_issue(int(issue))
if issue.state != "closed":
Expand Down
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 🐛 Bug report
about: Create a report to help us improve
title: ''
labels: Issue, Triage-Needed
assignees: ''

---

**Version**
Please provide the versions of the pulpcore and pulp_deb packages in use, and how they are installed. If you are using Pulp via Katello, please provide the Katello version.

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here. Please provide links to any previous discussions via Discourse or Bugzilla.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: ✨ Feature request
about: Suggest an idea for this project
title: ''
labels: Feature, Triage-Needed
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context about the feature request here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: 🗒️ Task
about: Documentation, CI/CD, refactors, investigations
title: ''
labels: Task, Triage-Needed
assignees: ''

---


2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-65-g3505809
2021.08.26-71-g2d3b35c
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,14 @@ jobs:


- name: Update GitHub
continue-on-error: true
run: |
set -euv
export COMMIT_MSG=$(git log --format=%B --no-merges -1)
export GH_ISSUES=$(echo $COMMIT_MSG | grep -o "GH Issues: .*" | awk '{print $3}')
echo "GH Issues $GH_ISSUES"
bash .ci/scripts/update_github.py $GH_ISSUES
python .ci/scripts/update_github.py
- name: Create release on GitHub
run: bash .github/workflows/scripts/create_release_from_tag.sh ${{ github.event.inputs.release }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ if [ -f $FUNC_TEST_SCRIPT ]; then
source $FUNC_TEST_SCRIPT
else

pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_deb.tests.functional -m parallel -n 8
pytest -v -r sx --color=yes --pyargs pulp_deb.tests.functional -m "not parallel"
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_deb.tests.functional -m parallel -n 8
pytest -v -r sx --color=yes --pyargs pulp_deb.tests.functional -m "not parallel"
else
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_deb.tests.functional -m "parallel and not nightly" -n 8
pytest -v -r sx --color=yes --pyargs pulp_deb.tests.functional -m "not parallel and not nightly"
fi

fi

Expand Down
3 changes: 2 additions & 1 deletion template_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This config represents the latest values used when running the plugin-template. Any settings that
# were not present before running plugin-template have been added with their default values.

# generated with [email protected]62-gfaa6635
# generated with [email protected]71-g2d3b35c

additional_plugins: []
additional_repos: []
Expand Down Expand Up @@ -72,4 +72,5 @@ test_s3: true
update_github: true
update_redmine: false
upgrade_range: []
use_issue_template: true

0 comments on commit 7041145

Please sign in to comment.