Skip to content
New issue

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

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

Already on GitHub? # to your account

GitHub Actions fails with "fatal: ls-files -i must be used with either -o or -c" #23

Open
mattock opened this issue Jan 23, 2023 · 6 comments

Comments

@mattock
Copy link

mattock commented Jan 23, 2023

Hi,

It seems that voxpupuli/gha-puppet/.github/workflows/basic.yml@v1 fails now with an error related to Git syntax errors:

fatal: ls-files -i must be used with either -o or -c

This has been reported by other projects and seems related to a Git version that breaks backwards compatibility. This issue seems to affect Ubuntu 20.04 and 22.04 images. Here's another report of what seems to be the same issue:

The relevant raw logs from GitHub Action here:

2023-01-23T08:42:14.9307855Z Requested labels: ubuntu-latest
2023-01-23T08:42:14.9307894Z Job defined at: voxpupuli/gha-puppet/.github/workflows/basic.yml@refs/heads/v1
2023-01-23T08:42:14.9308042Z Reusable workflow chain:
2023-01-23T08:42:14.9308082Z Puppet-Finland/puppet-ipa/.github/workflows/ci.yml@refs/pull/51/merge (a6b9e583c969e253f014370a2d6b01607aacfb6a)
2023-01-23T08:42:14.9308123Z -> voxpupuli/gha-puppet/.github/workflows/basic.yml@refs/heads/v1 (a8fea30a9fcf14fd4cc9071c839e5a55d5dbab83)
2023-01-23T08:42:14.9308143Z Waiting for a runner to pick up this job...
2023-01-23T08:42:15.3069344Z Job is waiting for a hosted runner to come online.
2023-01-23T08:42:20.0951290Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2023-01-23T08:42:22.2513455Z Current runner version: '2.300.2'
2023-01-23T08:42:22.2547523Z ##[group]Operating System
2023-01-23T08:42:22.2548413Z Ubuntu
2023-01-23T08:42:22.2548716Z 22.04.1
2023-01-23T08:42:22.2548996Z LTS
2023-01-23T08:42:22.2549248Z ##[endgroup]
2023-01-23T08:42:22.2549569Z ##[group]Runner Image
2023-01-23T08:42:22.2549971Z Image: ubuntu-22.04
2023-01-23T08:42:22.2550251Z Version: 20230118.2
2023-01-23T08:42:22.2550763Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230118.2/images/linux/Ubuntu2204-Readme.md
2023-01-23T08:42:22.2551397Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230118.2
2023-01-23T08:42:22.2551804Z ##[endgroup]
--- snip ---
2023-01-23T08:42:22.2562884Z Prepare workflow directory
2023-01-23T08:42:22.3750447Z Prepare all required actions
2023-01-23T08:42:22.3931872Z Getting action download info
2023-01-23T08:42:22.6214970Z Download action repository 'actions/checkout@v3' (SHA:ac593985615ec2ede58e132d2e21d2b1cbd6127c)
2023-01-23T08:42:23.0219206Z Download action repository 'ruby/setup-ruby@v1' (SHA:ee26e27437bde475b19a6bf8cb73c9fa658876a2)
2023-01-23T08:42:23.3344054Z Uses: voxpupuli/gha-puppet/.github/workflows/basic.yml
--- snip ---
2023-01-23T08:42:35.9539098Z [36;1mbundle exec rake validate lint check[0m
2023-01-23T08:42:35.9592809Z shell: /usr/bin/bash -e {0}
2023-01-23T08:42:35.9593038Z env:
2023-01-23T08:42:35.9593325Z   BUNDLE_WITHOUT: development:system_tests:release
2023-01-23T08:42:35.9593701Z ##[endgroup]
2023-01-23T08:42:37.0076470Z ruby -c lib/facter/ipa_server_version.rb
2023-01-23T08:42:37.0117439Z Syntax OK
2023-01-23T08:42:37.0126079Z ---> syntax:manifests
2023-01-23T08:42:37.3167538Z ---> syntax:templates
2023-01-23T08:42:37.3600457Z ---> syntax:hiera:yaml
2023-01-23T08:42:37.9234627Z fatal: ls-files -i must be used with either -o or -c
mattock added a commit to mattock/puppet-ipa that referenced this issue Jan 23, 2023
The Ubuntu-20.04 runner does not yet work with the actions we are using.

URL: voxpupuli/gha-puppet#23
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
@mattock
Copy link
Author

mattock commented Jan 23, 2023

Making "runs-on" configurable would probably allow working around this and other image-related issues. Right now "runs-on" is hardcoded to "ubuntu-latest":

@mattock
Copy link
Author

mattock commented Jan 23, 2023

Just for reference: "ubuntu-latest" changed from 20.04 to 22.04 some time after August 2022:

@bastelfreak
Copy link
Member

The error is probably coming from: puppetlabs/puppetlabs_spec_helper#346

If you want, you can test the master branch of puppetlabs_spec_helper and see if the error disappears.

@ekohl
Copy link
Member

ekohl commented Jan 23, 2023

As @bastelfreak said: this is something in puppetlabs_spec_helper and I'm really hoping they'll do a release. Nothing more we can do.

mattock added a commit to mattock/puppet-ipa that referenced this issue Jan 23, 2023
URL: voxpupuli/gha-puppet#23
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
mattock added a commit to mattock/puppet-ipa that referenced this issue Jan 23, 2023
URL: voxpupuli/gha-puppet#23
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
mattock added a commit to mattock/puppet-ipa that referenced this issue Jan 23, 2023
URL: voxpupuli/gha-puppet#23
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
mattock added a commit to mattock/puppet-ipa that referenced this issue Jan 23, 2023
URL: voxpupuli/gha-puppet#23
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
@mattock
Copy link
Author

mattock commented Jan 23, 2023

Thanks for the info @bastelfreak and @ekohl! I was unable to test my "revert back to Ubuntu 20.04 runner" workaround (see above) because referring to public non-GitHub Marketplace GitHub Action workflows seems to broken now.

@ekohl
Copy link
Member

ekohl commented Jan 23, 2023

We did create f744ec2. Perhaps we should create a new tag again, which is something we don't do that much.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants