Skip to content

github actions black run suddenly failing #3538

@ThomasWaldmann

Description

@ThomasWaldmann

Describe the bug

We suddenly have black fail on a PR that has no related changes.
After merging the PR, black is now also failing on master branch.

https://github.com/borgbackup/borg/actions/runs/4063411463/jobs/6995614199
https://github.com/borgbackup/borg/blob/master/.github/workflows/black.yaml

We pinned black to 22.6.0 there, log says:

Download action repository 'psf/black@22.6.0' (SHA:f6c139c5215ce04fd3e73a900f1372942d58eca0)

We also use that locally via our requirements.d/codestyle.txt.

If I run black 22.6.0 locally, it says everything is fine and it doesn't want to reformat anything.

Expected behavior

Should behave the same way locally as on github actions if using same black version.

Environment

  • Black's version: 22.6.0
  • OS and Python version: local: macOS, python 3.10.9. github action: ubuntu 20.04, python 3.8.10(?)

Additional context

It worked fine until about today (2023-02-01).

Here is a black run of yesterday:

https://github.com/borgbackup/borg/actions/runs/4059816119/jobs/6988280083

Master branch, single-line changeset, no complaints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions