Skip to content

Adding pre upgrade tests - #417

Merged
gerrod3 merged 2 commits into
pulp:3.2from
fao89:pre_upgrade
Aug 23, 2021
Merged

Adding pre upgrade tests#417
gerrod3 merged 2 commits into
pulp:3.2from
fao89:pre_upgrade

Conversation

@fao89

@fao89 fao89 commented Aug 20, 2021

Copy link
Copy Markdown
Member

[noissue]

@fao89
fao89 force-pushed the pre_upgrade branch 2 times, most recently from 5669de6 to 2ae70d4 Compare August 23, 2021 20:31
@fao89

fao89 commented Aug 23, 2021

Copy link
Copy Markdown
Member Author

@gerrod3 can I have a review + merge?

@gerrod3 gerrod3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, got a question about the pre-upgrade test before I approve. Also, is this PR a requirement for #416

Comment on lines +119 to +121
# Step 8
url = self.cfg.get_content_host_base_url() + "/pypi/pulp_pre_upgrade_test/"
self.assertEqual(url, distribution.base_url, url)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't understand how this test is passing. What does cfg.get_content_host_base_url() return? Is it the content app url, aka PULP_CONTENT_ORIGIN or is it the hostname of the Pulp-API? The url you are testing against won't exist in 3.2 as the "new" pypi api was added in 3.4.

@fao89 fao89 Aug 23, 2021

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread .ci/scripts/update_redmine.sh Outdated
Comment on lines +25 to +26
echo "Milestone: $MILESTONE"
pip install python-redmine httpie

if [[ "$MILESTONE" != "${RELEASE%.post*}" ]]; then
echo "Milestone $MILESTONE is not equal to Release $RELEASE"
exit 1
fi

pip install python-redmine
python3 .ci/scripts/redmine.py $REDMINE_QUERY_URL
python3 .ci/scripts/redmine.py $REDMINE_QUERY_URL $MILESTONE_URL $RELEASE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Weird that these got added since python uses github issues. Guess these spots don't use the setting from the template when auto-generating these files.

Comment thread .github/workflows/create-branch.yml Outdated
Comment on lines +33 to +35
- uses: actions/setup-python@v2
with:
python-version: "3.8"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be python 3.6 for pulp_python 3.2? I'm not sure it matters much since I probably won't be making any backport releases from this branch, but just curious if this is a missed spot for the python version on the template CI.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I need to change it on plugin-template

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

[noissue]
@gerrod3

gerrod3 commented Aug 23, 2021

Copy link
Copy Markdown
Contributor

@fao89 I see that the new pre-upgrade test isn't ran in the CI. Is that test only ran on master branch?

@fao89

fao89 commented Aug 23, 2021

Copy link
Copy Markdown
Member Author

@fao89 I see that the new pre-upgrade test isn't ran in the CI. Is that test only ran on master branch?

it will run on PRs, the piece of code that runs it is here:
#416

@gerrod3
gerrod3 merged commit 5a50e3a into pulp:3.2 Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants