Skip to content

Commit

Permalink
Switch to using pulp dev branches (#1620)
Browse files Browse the repository at this point in the history
* Switch to using pulp dev branches

No-Issue
  • Loading branch information
newswangerd authored Feb 27, 2023
1 parent 5cdaf2d commit 05b8156
Show file tree
Hide file tree
Showing 18 changed files with 339 additions and 461 deletions.
1 change: 0 additions & 1 deletion .ci/assets/release_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bump2version
gitpython
python-redmine
towncrier
1 change: 0 additions & 1 deletion .ci/scripts/check_gettext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ cd "$(dirname "$(realpath -e "$0")")"/../..

set -uv

# check for imports not from pulpcore.plugin. exclude tests
MATCHES=$(grep -n -r --include \*.py "_(f")

if [ $? -ne 1 ]; then
Expand Down
69 changes: 0 additions & 69 deletions .ci/scripts/cherrypick.sh

This file was deleted.

35 changes: 0 additions & 35 deletions .ci/scripts/redmine.py

This file was deleted.

26 changes: 0 additions & 26 deletions .ci/scripts/update_redmine.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-193-geaaba01
2021.08.26-197-g21230dd
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
GITHUB_PR_COMMITS_URL: ${{ github.event.pull_request.commits_url }}
START_COMMIT: ${{ github.event.before }}
END_COMMIT: ${{ github.event.after }}
Expand Down Expand Up @@ -139,6 +140,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Install

Expand All @@ -154,6 +156,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Install Python client

Expand All @@ -174,6 +177,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
REDIS_DISABLED: ${{ contains('', matrix.env.TEST) }}

- name: Setting secrets
Expand All @@ -196,6 +200,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Extract Deprecations from Logs
id: deprecations
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_standalone-certified-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: finish insights instance setup
run: |
oci-env -e dev/oci_env_configs/sync-test.compose.env db restore -f insights-fixture
oci-env -e dev/oci_env_configs/sync-test.compose.env db restore -f insights-fixture --migrate
oci-env -e dev/oci_env_configs/sync-test.compose.env pulpcore-manager migrate
oci-env -e dev/oci_env_configs/sync-test.compose.env poll
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- TEST: pulp
- TEST: azure
- TEST: s3


steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- uses: ruby/setup-ruby@v1
if: ${{ env.TEST == 'bindings' || env.TEST == 'generate-bindings' }}
Expand All @@ -82,6 +84,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Before Script

Expand All @@ -97,6 +100,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
REDIS_DISABLED: ${{ contains('', matrix.env.TEST) }}

- name: Setting secrets
Expand Down Expand Up @@ -129,6 +133,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Upload python client packages
if: ${{ env.TEST == 'bindings' || env.TEST == 'generate-bindings' }}
Expand Down Expand Up @@ -260,6 +265,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Install

Expand All @@ -275,6 +281,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Install Python client

Expand All @@ -300,6 +307,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
REDIS_DISABLED: ${{ contains('', matrix.env.TEST) }}

- name: Setting secrets
Expand All @@ -310,10 +318,6 @@ jobs:







- name: Logs
if: always()
run: |
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Install python dependencies
run: |
echo ::group::PYDEPS
pip install packaging~=21.3 bandersnatch bump2version gitpython python-redmine towncrier==19.9.0 wheel
pip install packaging~=21.3 bandersnatch bump2version gitpython towncrier==19.9.0 wheel
echo ::endgroup::
- name: Configure Git with ansible name and email
Expand Down Expand Up @@ -132,6 +132,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Install
run: |
Expand All @@ -147,6 +148,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
shell: bash

- name: Before Script
Expand All @@ -163,6 +165,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0
REDIS_DISABLED: ${{ contains('', matrix.env.TEST) }}

- name: Setting secrets
Expand Down Expand Up @@ -199,6 +202,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
GITHUB_USER: ${{ github.event.pull_request.user.login }}
LOCK_REQUIREMENTS: 0

- name: Upload python client packages
if: ${{ env.TEST == 'bindings' || env.TEST == 'generate-bindings' }}
Expand Down Expand Up @@ -284,16 +288,14 @@ jobs:
- name: Install python dependencies
run: |
echo ::group::PYDEPS
pip install gitpython python-redmine requests packaging~=21.3 tweepy
pip install gitpython requests packaging~=21.3 tweepy
echo ::endgroup::
- name: Push branch and tag to GitHub
run: bash .github/workflows/scripts/push_branch_and_tag_to_github.sh ${{ github.event.inputs.release }}





- name: Tweet
continue-on-error: true
run: python .ci/scripts/tweet.py ${{ github.event.inputs.release }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fi



git clone --depth=1 https://github.com/pulp/pulpcore.git --branch 3.22.1
git clone --depth=1 https://github.com/pulp/pulpcore.git --branch main

cd pulpcore

Expand All @@ -111,7 +111,7 @@ fi
cd ..


git clone --depth=1 https://github.com/pulp/pulp_ansible.git --branch 0.16.0
git clone --depth=1 https://github.com/pulp/pulp_ansible.git --branch main
cd pulp_ansible

if [ -n "$PULP_ANSIBLE_PR_NUMBER" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TAG=ci_build
if [ -e $REPO_ROOT/../pulp_ansible ]; then
PULP_ANSIBLE=./pulp_ansible
else
PULP_ANSIBLE=git+https://github.com/pulp/pulp_ansible.git@0.16.0
PULP_ANSIBLE=git+https://github.com/pulp/pulp_ansible.git@main
fi
if [ -e $REPO_ROOT/../pulp_container ]; then
PULP_CONTAINER=./pulp_container
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def create_release_commits(repo, release_version, plugin_path):
git.add(f"{plugin_path}/setup.py")
git.add(f"{plugin_path}/requirements.txt")
git.add(f"{plugin_path}/.bumpversion.cfg")

git.commit("-m", f"Release {release_version}\nGH Issues: {issues}\n\n[noissue]")

sha = repo.head.object.hexsha
short_sha = git.rev_parse(sha, short=7)

Expand All @@ -101,7 +99,6 @@ def create_release_commits(repo, release_version, plugin_path):
git.add(f"{plugin_path}/requirements.txt")
git.add(f"{plugin_path}/.bumpversion.cfg")
git.commit("-m", f"Bump to {new_dev_version}\n\n[noissue]")

print(f"Release commit == {short_sha}")
print(f"All changes were committed on branch: release_{release_version}")
return sha
Expand Down
Loading

0 comments on commit 05b8156

Please sign in to comment.