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
getfacl not found in v0.63.0? #2134
Comments
Yes that was released today. What os or image does your workflow run on? |
In hindsight we should have made this an opt-in step. Looking to do a fix asap, but I'm traveling tomorrow. |
Cc @jmalins |
The release.xml says "runs-on: ubuntu-latest" -- I ran with "npx projen new awscdk-construct" went with the out of the box configuration. |
Thanks for the info. That's certainly expected to work. 🤔 |
It looks like the default configuration of the That being said, you're right, there should also be an opt-out for the cases where users bring their own images. @mrgrain I can submit a superchain PR this weekend, as that should be a one liner, but may not be able to get to a parameterized fix until Monday. |
Adds the `acl` package to the superchain image. A recent [projen PR](projen/projen#2103) added a build-time dependency on the `getfacl` and `setfacl` tools in this package to workaround a bug in GitHub Actions. The package is included in the GHA `ubuntu-latest` image, but not superchain. Should address: projen/projen#2134 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
Thanks @jmalins ✅ Or maybe we don't even need an opt out but just have the steps not failing the whole Pipeline (and display a warning of sorts). 🤔 |
@mrgrain I had the same thought overnight. If the backup/restore steps were to become no-ops when the Having the tools in Plus, any opt-out prop would need to be drilled pretty deeply into the |
I have a PR ready (see link) for the non failure. Not sure if that's the best way to do it, but certainly the easiest. |
> `getfacl` not installed projen/projen#2134
In #2132 we fixed an issue with file permissions not being preserved in GH Action workflows. The implementation uses the `acl` package to backup end restore permissions. While we can ensure the package is installed in all default runners or containers, it might not be available in customized workflows. This change marks the permissions backup and restore steps as allowed to fail. Since it is a workaround for GH Actions issue and only required in certain situations, we should not fail the whole build if the package is not available. Fixes: #2134 Additionally fixes an issue with invalid workflow files being generated when `continueOnError` is set on a Job Step. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
I can confirm this is fixed now |
In v0.63.0 (could have been any release made on Sep-30), a new step "Backup artifact permissions" was added to the github workflow build.xml and triggered this error for us. Anyone else seeing the same issue -"getfack not found" ?
Run cd dist && getfacl -R . > permissions-backup.acl
cd dist && getfacl -R . > permissions-backup.acl
shell: sh -e {0}
env:
CI: true
/__w/_temp/92dd0f30-d46f-4688-a246-5dcbb7d5ac03.sh: 1: /__w/_temp/92dd0f30-d46f-4688-a246-5dcbb7d5ac03.sh: getfacl: not found
Error: Process completed with exit code 127.
The text was updated successfully, but these errors were encountered: