-
Notifications
You must be signed in to change notification settings - Fork 221
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
Commands Specified in devcontainer.json Fail in GitHub Actions #606
Comments
From the devcontainers/cli release notes
I can only assume something here broke functionality. Definitely agree with @Olgethorpe that pinning the version of the cli (or at least an action argument allowing it to be pinned) should probably be added. Pinning the version of the action and having outside changes still break things isn't ideal. |
Maybe its a good and simple solution right now to just pin the version in https://github.com/devcontainers/ci/blob/cc80b0ef439af5f89482a346a8362cfb815cd3ca/common/src/dev-container-cli.ts#L8 to |
I saw that there was logic in place to check if the CLI was already installed. I think that pinning the CLI version can mitigate the issue for the short term. I am going to attempt to do the following before the CLI to see if it picks up from an existing installation depending on how fast that change can be moved along.
|
@Olgethorpe Looks like that mitigation works for us. Thanks for the find! |
I think the above PR should be the long-term solution in specifying version to reduce overhead runtime code setting up node and installing an additional package to preserve more GHA minutes for the devcontainer image rather than the overhead of GHA wrapping the required tools for this tool. |
@chrmarti - I'm off currently, but also hit this issue in AzDO builds (the error I see is Builds were working fine on 0.50.0 but failing on 0.50.1 |
Hi, seems like it's related to the issue I'm facing as well devcontainers/ci#254 |
Fixed in 0.50.2. Let me know if you still see any issues with that. Thanks! |
There is an issue in 0.50.1 that has been fixed and not released yet. devcontainers/cli#606
I can confirm, that CI/CD jobs in GitHub actions are no longer reporting the |
I have a CI/CD pipeline that utilizes devcontainers/ci to run relevant test/build commands using GitHub Actions. Prior to the release of devcontainers/cli 0.50.1. All of the devcontainers were able to execute their commands without any issues. Now executing any of the commands after the
initializeCommand
fail inside of the GitHub Actions runner where they were not before. If I do not specify arunCmd
in the devcontainers/ci action's arguments the devcontainer is still able to be built. The devcontainers are able to be built and ran locally when using VSCode and everything works as expected.What I do know when this executes is as follows:
initializeCommand
it fails with the following error:the input device is not a TTY
without any additional explanationAt first I thought some combination of
runArgs
I could supply to make the devcontainer work again but that does not seem to be the case. Would a feature to use a specific version of the devcontainers CLI be worth implementing?The text was updated successfully, but these errors were encountered: