Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate publishing to PyPI from Travis CI to GHA #840

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

webknjaz
Copy link
Member

No description provided.

@webknjaz
Copy link
Member Author

(decided that dropping travis can be done separately from moving the publish procedure)

Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

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

In general it looks ok but please:

  • remove emoji
  • assure that it does not run if linters are failing (you used condition only on test-matrix, which does not include linters).

@webknjaz
Copy link
Member Author

  • assure that it does not run if linters are failing (you used condition only on test-matrix, which does not include linters).

This is out of scope, plus I don't think that linters should block the release. That's why they are in a separate job.

@webknjaz webknjaz requested a review from ssbarnea June 19, 2020 08:11
@ssbarnea
Copy link
Member

When I say linters, I mean .github/workflows/tox-linters.yml file which includes execution of all jobs that are not unit-tests, including: lint,build-dists,metadata-validation. Clearly that we want all to pass.

Regarding emoji, lets not impose our personal preferences and see what other have to say about it. I am aware of lots of projects that forbid use of emoji in commit messages or code (openstack is one of them).

@webknjaz
Copy link
Member Author

Regarding emoji, lets not impose our personal preferences and see what other have to say about it.

Exactly, it's not worth blocking a good change. You didn't suggest a better solution anyway and this one already conforms my requirements to that name.
It's funny that you request your preference to be fulfilled while saying that we shouldn't impose our personal preferences. Either way, it follows the existing style and as such, is out of the scope of this PR. You know I hate unrelated changes in PRs so I'm not going to debate it here anymore.

Clearly that we want all to pass.

They will still show up on PRs and you're not going to be tagging PR branches, right? What if something changes in the env and a perfectly valid and green, at the moment of merging, commit publishing will ruin the publish just because some linter changed or something silly broke? I've put them separately for a reason and I exercise this set up in many places and it works fine. The only reason for linters to be run early in Travis is to fail early, preventing the tests from running, not publishing. That's because it has way more limited resources that we wanted to consume moderately.

@webknjaz
Copy link
Member Author

including: lint,build-dists,metadata-validation. Clearly that we want all to pass.

FTR build-dists and metadata-validation are in the deploy job already. A and lint shouldn't be a blocker.

@webknjaz webknjaz force-pushed the testing/gha-pypi-publish branch from 9072def to 99fb183 Compare June 19, 2020 09:41
@gundalow
Copy link
Collaborator

I don't like doing this, though I'm just going to pull rank here.
Let's get the functional changes in so we can drop Travis. Then we can address emoji in a follow up PR. Thanks for your understanding.

@webknjaz
Copy link
Member Author

Thanks @gundalow, adding an approval should do. Whoever does this, please feel free to merge it yourself since I'm mostly afk this weekend + PTO on Mon.

@gundalow
Copy link
Collaborator

I can't review this from a technical level, so I'll leave that in the good hands of @awcrosby @ssbarnea and @albinvass

Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

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

No offense, but I am keeping my downvote because previous mistakes should not be used as an excuse to make the situation worse (more emoji).

Obviously that others are welcomed to have different opinions and I would remove my vote if I see I am alone in my views.

There is an already existing review to remove the existing emoji at #845 -- luckily since we already removed the azure pipelines we have only one more file to fix.

@ssbarnea ssbarnea merged commit a9d0ca1 into master Jun 22, 2020
@ssbarnea ssbarnea deleted the testing/gha-pypi-publish branch June 22, 2020 13:31
@ssbarnea ssbarnea added the skip-changelog Can be missed from the changelog. label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Can be missed from the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use an API token for uploading to PyPI from Travis CI instead of account creds
3 participants