-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Github Action broken (unable to find version "stable") #2079
Comments
We're in the process of getting ready for a release so yeah? I haven't been involved in this effort so I don't know the details. Why would the stable branch be deleted? IDK, probably a mistake from the cleaning up they've been doing. cc @ambv @cooperlees |
We're experiencing the exact same issue @mlissner. Not isolated to you or your project. See https://github.com/folksgl/identity-give-usps/runs/2248887438?check_suite_focus=true |
|
Has anything changed with the 'stable' branch? Most of our jobs on the infra seem to be impacted with this.
|
Just workarounds for those who wonder # .pre-commit-config.yaml
repos:
- repo: https://github.com/psf/black
rev: 20.8b1 # change this
hooks:
- id: black
language_version: python3 # .github/workflows/black.yaml
name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@20.8b1 # change this |
Same issue at https://github.com/TheAlgorithms/Python. @sh-cho's fix seems to work. |
* fix directory arithmetic_analysis * Update build.yml * temporary fix for psf/black bug see psf/black#2079 * Update in_static_equilibrium.py
The 'stable' branch on black repo has been removed. Add workaround to point to branch/rev to '20.8b1' until the issue is resolved. GH Issue: psf/black#2079 Change-Id: I5f19f83f8aaf315056541547530367be9ee67db5 Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
So is the |
@sdodsley The core team wants to bring it back ASAP, but no one who has the right perms has done it yet ... I don't have write permissions or else I probably would've done it by now. I'm sorry. |
Despite the names, “stable” just installed the 20.8b1.
… On Apr 2, 2021, at 11:12 AM, Richard Si ***@***.***> wrote:
[CAUTION: Non-UBC Email]
@sdodsley The core team wants to bring it back ASAP, but no one who has the right perms has done it yet ...
I don't have write permissions or else I probably would've done it by now. I'm sorry.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@cubranic that may be so, but I do not want to keep having to check the black repo for new releases, that is why |
That's what I thought 'stable' was for, surprised it has been removed. |
The Black team is preparing for a new release and - for currently unknown reasons - the stable branch of the GH action was deleted in the process. This breaks our GH Actions workflow, and to work around it we temporarily pin the version to the last stable version until the issue is resolved. Reference to the issue at psf/black tracking the problem: psf/black#2079 psf/black#2079
It seems resolved for my project somehow. Repository: https://github.com/simaki/fracdiff |
Yeah, now there's a stable tag pointing to the commit that ended up being the 20.8b1 version, but there's no stable branch. So |
What does a branch give us? When we do the next release don’t we just move the stable tag and it works for everything people are using it for? What am I missing? What is the advantage of a branch? The only reason I’d imagine we want a branch if we wanted to cherry pick a fix on to a released version. But we can do that if ever needed. I think most black developers agree that we will just forward fix. I hope to one day get more consistent releases tho. |
Why we aren't using |
@jerinpetergeorge I suppose you can, but that's development branch, so you'll have a rolling release with all it's consequences. |
The 'stable' branch on black repo has been removed. Add workaround to point to branch/rev to '20.8b1' until the issue is resolved. Update broken link. GH Issue: psf/black#2079 Change-Id: Ide90eecd3d0a5175a0a67568dbca87a3f8fd7c99 Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
@cooperlees First of all I want to apologize for being so damn unclear during our IRC conversation. If it's any explanation (not an excuse!) that day in general was pretty crappy so my tolerances were unusually low. Anyway with a clearer mind, let me explain myself: The main issue is that tags are by design extremely hard to mutate, when the There also might be some issues with ReadTheDocs not triggering a build automatically when the stable tag is moved, but I haven't confirmed that, just noticed how the stable reference was changed to point a different commit yet RtD didn't notice (it could just be webhook weirdness).
Personally I'd discourage this as much as possible (if not disallow it straight up) regardless of whether the stable reference is a tag or branch. edit: there's also an issue with the stable tag being marked as a release in the GitHub UI which isn't ideal (I wonder whether the GitHub release will update if the tag is updated). |
* Several documentation updates. * Removed warning about Python 3.9 since the installation is fairly smooth by now (except wxpython on linux is still a pain, but that's an extra). * Improved error handling for pylint errors, preferring to inform the person building the docs of errors more than the person reading them. * Fixed a broken link to a settings snippet * Pinned docutils at <0.17 to avoid bug * Add prefer binary to tox testing config The pytest --prefer-binary flag was added to get around issues where pip was grabbing a Python 3.6-incompatible source distribution of h5py rather than an older wheel that supports Python 3.6. * Move prefer-binary to proper place * Add pip requirement to support prefer-binary * Implement workaround for broken upstream black The code formatter has an issue that is breaking our CI steps. This implements the workaround described here: psf/black#2079 (comment) Also changes `ubuntu-latest` to `ubuntu-20.04` for extra stability.
Could you perhaps pin this issue, please? I've always used specific releases, so my spidey senses tingled when I saw a |
It has been a while. Is the branch coming back? |
* fix directory arithmetic_analysis * Update build.yml * temporary fix for psf/black bug see psf/black#2079 * Update in_static_equilibrium.py
We have a stable branch again now. |
Has this been somehow renewed? @JelleZijlstra Run psf/black@stable
with:
options: --check --diff
src: .
/usr/local/bin/python3: can't open file '/home/runner/work/_actions/psf/black/stable/action/main.py': [Errno 2] No such file or directory
Error: Process completed with exit code 2. This is failing since yesterday. changing the job to use: also solves it. |
Reading the references a bit and reflecting on the repository:
So yeah, I agree that this should be reopened, and the stable branch should be introduced once more. |
@felix-hilden @JelleZijlstra So it actually might be a problem with that specific version rather than the |
I think I've misunderstood something here: surely a moving branch is as bad for caching as a moving tag is. So maybe the situation is a bit more complicated. |
To be clear... moving tags is bad for pre-commit. Because pre-commit is assuming that tags are an immutable point in time in a repositories history (not a bad assumption, but it's just not true right now for Black). Pre-commit will cache the code associated with a tag and never again check to see if that code changed. What I think people would like to be able to do, is to set up a That however introduces it's own problems since the "latest" black tag isn't always a version that's considered stable. So users will likely have to either manually edit their pre-commit config files or just be OK with having a beta release should they choose to |
OK, First of all, whether stable is a branch or tag shouldn't matter here. This isn't pre-commit but GitHub Actions which AFAIK doesn't cache actions (although all of the talk about tag / branches being problematic with pre-commit are 100% valid). Note that Second thing, sadly I can't reproduce: https://github.com/ichard26/testblackaction/actions/runs/939706114 I will take responsibility here since I was the last person to make significant changes to how the action works, but to be honest, I don't understand why or how this is failing. PS. I say that GitHub Actions doesn't cache Actions, but I genuinely don't really know |
You're correct that branch v tag shouldn't matter. But with the pre-commit configuration used within github actions (where yes, things aren't cached), users are going to see their workflows fail because the version github actions pulls from black is eventually not going to match their locally cached version of stable that they validated against (which likely should have been pinned) at whenever they ran the tool. Perhaps if pre-commit works by caching a version that the user specified, and updating when the user tells it that it's time to update. I think having the vcs integration page list Version pinning solves this issue and I agree that nearly all projects should be pinning their version of Black just like any other dependency. But the current recommendation of |
Thanks for explaining but I do happen to roughly know how pre-commit works and how bad the recommendation of It's my understanding here that this issue is about GHA and the official black action we provide, not GHA + pre-commit configured to use black. Our recommendations of using black with pre-commit are problematic in its own way, but I'd argue it's noise to the fact the official action is failing (I can open a new issue about pre-commit later). I'm sorry if I'm mistaken. |
* fix directory arithmetic_analysis * Update build.yml * temporary fix for psf/black bug see psf/black#2079 * Update in_static_equilibrium.py
FWIW, force pushing a modified |
This can be closed, we have got the |
I'm pretty sure this isn't my fault, but our Github Action just started failing with the following message:
You can see this happening here: https://github.com/freelawproject/eyecite/runs/2248542521?check_suite_focus=true.
I'm guessing that this is related to dropping the
stable
version or something like that, but I expect it will affect a lot of folks that use the action since the docs recommend configuring it this way.The text was updated successfully, but these errors were encountered: