| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Maybe problem arise when used in docker container or on windows runner. Was this supported before ? |
Sorry, something went wrong.
|
Looks good just from reading through, couple of questions but I'll review in more depth when I can run this on a project too. |
Sorry, something went wrong.
|
I don't understand how tool.semantic_release.build_command is supposed to work, I will go read the source code. I expect tool.semantic_release.build_command to break if the user was not relying on build-system.requires for specifying dependencies. For example, on a project I was using poetry + nuitka, and relying on the debian backend for C-level deps (glibc version especially, not backward compatible). I can only grasp a fraction of the esoteric shenanigans done to build packages. At least, I suspect some may break from the transition debian -> ubuntu. Build relying on build-system.requires to make wheels should work fine. More important than that, I identified a bug in my version for GITHUB_OUTPUT variable. tag, released and version are not set correctly. Look at the env in Add file to check if it is added Master: https://github.com/zckv/semantic-versioning-example/actions/runs/6233057268/job/16917466927 Branch: https://github.com/zckv/semantic-versioning-example/actions/runs/6222835609/job/16887537001 I will work on correcting that. |
Sorry, something went wrong.
This correct the outputs set to none problem.
|
I forgot to add the value keyword of the action outputs... Now this seems to work fine. |
Sorry, something went wrong.
Should no longer be needed once python-semantic-release/python-semantic-release#692 is merged. Signed-off-by: Felix Kaechele <felix@kaechele.ca>
…a_composite_action
|
I appreciate the updates hoping to make this action more efficient and not break backwards compatibility, but unfortunately this update still broke our workflows. For anyone else potentially running into an error that looks like this: Run python -m venv ~/semantic-release/.venv
python -m venv ~/semantic-release/.venv
source ~/semantic-release/.venv/bin/activate
pip install python-semantic-release
semantic-release --help
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
REPOSITORY: jasmine-bot
BRANCH: main
IMAGE_TAG: main
AWS_ACCOUNT_ID: ***
/var/cache/github-actions-runner/_temp/8bef674b-1c76-4b00-a4ea-65c478c03cf9.sh: line 1: python: command not found
Error: Process completed with exit code 1[27](https://github.com/Jasmine-Energy/jasmine-bot/actions/runs/6618216903/job/17976953641#step:3:29).
You need to add the setup-python step to your workflow before semantic release, i.e.: ...
release:
name: Release
runs-on: [self-hosted, factory]
steps:
- name: Github checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.0'
cache: 'pip'
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
...
This is on a self-hosted actions runner, on Ubuntu 20.04, with python 3.10 installed. |
Sorry, something went wrong.
|
Hello @venachescu 👋 I'm sorry that it broke your workflows, I didn't consider the self-hosted runners option. Python is a dependency of this action. Before, the problem didn't happen because python was installed within the Dockerfile. As GitHub Hosted runners have python3.10 per default, I thought python3 interpreter would be available at all time. Should I make a new branch to enhance the behavior of this error? |
Sorry, something went wrong.
|
Hey @venachescu - I should add my apologies too, I'd also glossed straight over the question "what if there's no Python entirely?" If you don't manage to get to it today @zckv I'll modify the action.sh to check for Python and give a better error if it's missing, and put it out as a breaking change |
Sorry, something went wrong.
|
I don't think there is a better way of handling this than to display a better error. And adding documentation. Another method is to install a python3 (>=3.7) interpreter on the machine, but that is too risky from my point of view. According to GitHub documentation, self-hosted runners can run on many different platforms. I'm not sure if the new version can run on RHEL7, as the default interpreter is python3.6. I would document that this action does not officially support self-hosted runners. |
Sorry, something went wrong.
|
Or maybe reverting the changes and do a separate action, like python-semantic-release/upload-to-gh-release ? |
Sorry, something went wrong.
This reverts commit 4648d87.
|
I reverted the changes for now - let's make a new PR. Good point about self-hosted runners. There's a lot of different OSs. I'd be more inclined to take the stance that we support self-hosted with some prerequisites, that's fairly normal when taking on the overhead of self-hosting, but it needs to be documented & released as breaking. We shouldn't be installing an interpreter as part of the action, and Windows is going to be problematic (I just tested). Should be doable though 🤞 |
Sorry, something went wrong.
Co-authored-by: Bernard Cooke <bernard-cooke@hotmail.com>
|
Hi @zckv and @bernardcooke53 - no worries about the broken workflows, and thanks for jumping on this so quickly! We have a slightly unusual setup where python (version 3.10) is installed on the self-hosted runners, but it's managed by pyenv and not installed using the using apt install python3 or similar. I didn't have time to dig into it yesterday, but now I realize that the only way to get the actions runner to find that installation of python is doing something along the lines of echo "$HOME/.pyenv/bin" >> $GITHUB_PATH. Either way, having the actions/setup-python@v4 as step in the workflow is totally acceptable for us here, but it sounds like you guys are hoping to find a solution that avoids this! |
Sorry, something went wrong.
Later versions reverted python-semantic-release/python-semantic-release#692 which breaks builds on Python projects requiring a newer interpreter than 3.10, which their container uses. Should be fine to update after python-semantic-release/python-semantic-release#741 is merged again. Signed-off-by: Felix Kaechele <felix@kaechele.ca>
Co-authored-by: Bernard Cooke <bernard-cooke@hotmail.com>
Resolves: #692 Co-authored-by: Bernard Cooke <bernard-cooke@hotmail.com>
The fork simply reintroduces python-semantic-release/python-semantic-release#692 Signed-off-by: Felix Kaechele <felix@kaechele.ca>
| Back | FazBrowse Home | New Git URL |
For issue #685
Make a venv environment in ~/semantic-release folder, install python-semantic-release with pip.
Dependencies are used in github env keyword.
Changed default git user mail from "github-actions@github.com" to "actions@github.com" to reflect the docs.
Removed --global git option to avoid breaking user environment.
This will probably break tool.semantic-release.build_command. This should not break standard usage.
I tested this on a personal project, it worked fine.