From 70411458ffd15e5974ed7607936e2fcb6cc196be Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 6 Feb 2022 02:55:50 +0000 Subject: [PATCH] Update CI files [noissue] --- .ci/scripts/update_github.py | 5 ++--- .github/ISSUE_TEMPLATE/bug_report.md | 23 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/task.md | 10 ++++++++++ .github/template_gitref | 2 +- .github/workflows/release.yml | 3 ++- .github/workflows/scripts/script.sh | 9 +++++++-- template_config.yml | 3 ++- 8 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/task.md diff --git a/.ci/scripts/update_github.py b/.ci/scripts/update_github.py index 725976307..93cb560b5 100755 --- a/.ci/scripts/update_github.py +++ b/.ci/scripts/update_github.py @@ -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": diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..0a6a15ce1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..487f5a754 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -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. diff --git a/.github/ISSUE_TEMPLATE/task.md b/.github/ISSUE_TEMPLATE/task.md new file mode 100644 index 000000000..f38daa65d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/task.md @@ -0,0 +1,10 @@ +--- +name: 🗒️ Task +about: Documentation, CI/CD, refactors, investigations +title: '' +labels: Task, Triage-Needed +assignees: '' + +--- + + diff --git a/.github/template_gitref b/.github/template_gitref index 1b8061f34..5f534b190 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-65-g3505809 +2021.08.26-71-g2d3b35c diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e1249157..ab0945dc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index dc778d087..25a1d78c4 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -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 diff --git a/template_config.yml b/template_config.yml index 3928ce327..1cb8524af 100644 --- a/template_config.yml +++ b/template_config.yml @@ -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 plugin_template@2021.08.26-62-gfaa6635 +# generated with plugin_template@2021.08.26-71-g2d3b35c additional_plugins: [] additional_repos: [] @@ -72,4 +72,5 @@ test_s3: true update_github: true update_redmine: false upgrade_range: [] +use_issue_template: true