-
Notifications
You must be signed in to change notification settings - Fork 425
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
docker version 18 in buildspec of test_commands gives 'Unknown runtime version' #4721
Comments
Hi @lennertcc !! Thank you so much for reporting this issue. It looks like we have to update this section of the CloudFormation template for the pipeline: copilot-cli/internal/pkg/template/templates/cicd/pipeline_cfn.yml Lines 302 to 304 in e1afe39
and completely remove |
Updates docker version from 18 --> 20 Fixes #4721 To address a requirement when running test_commands By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
Getting this error right now. The lines copilot-cli/internal/pkg/template/templates/cicd/pipeline_cfn.yml Lines 302 to 304 in e1afe39
|
@lominming Hey there! It's been fixed in #4723, but the fix isn't rolled out yet! We will try to release the fix ASAP. For the time being, to get around this bug you can try to modify the buildspec for the test command CodeBuild project and remove ⬇️ lines altogether install:
runtime-versions:
docker: 18 just like what https://github.com/aws/copilot-cli/pull/4723/files#diff-b23d8ebe6f7575eb66b41d872d02a08228ae1952ed3705bfb5b5ad4a8b27c403 did. |
The buildspec only included: (No docker was created by copilot CLI)
I tried adding |
Hi @lominming, the Apologies for the inconvenience 🙇 |
@efekarakus @Lou1415926 Is there a command similar to At the console, when I try to edit buildspec, it just says |
I haven't change anything recently and suddenly I am getting which I think could help to shed light on what is going on. Previously without test_commands it will build fine, and now it triggers this error regardless of whether I use test_commands. Error: Success: Compare to my last successful build: |
I figured out why I got the YAML file missing error, it is because when I was trying to edit the buildspec, I accidentially deleted the path to the YAML file. This is the original config by To recap, the file |
Hi @lominming ! nice, I'm glad you found the issue 🚀 I'm struggling to follow if there is still an error or if after adding the buildspec file path the issue is fixed? The buildspec should not have a |
@efekarakus Sorry for the confusion, I am still getting the original error: Sorry that I am still a bit unclear. It would be great if you could help clarify the following statements again. 1) There is a buildspec.yml in
For reference, the
|
Hey @lominming !
Note: If you redeploy pipeline using Let me clarify there are two different buildspec over here and I am currently using
Link to the copilot generated buildspec
It will have pre-populated docker version as 20 and ruby version 3.1 with copilot version 1.27.0.
Edit the TestCommands buildspec to remove the docker version from install instructions
You have to edit the buildspec of |
Updating my previous error that could be helpful to others.
|
@KollaAdithya I am now facing another issue from a recent What I did:
|
Hey @lominming! Just wanted to clarify something from #4721 (comment) - Environment pipelines deploy Copilot environments, which don't involve any of your code (like So for example an environment pipeline would have the steps:
A workload pipeline would have the steps:
Does this help clarify anything for you? I just want to make sure that an environment pipeline is what you're expecting. If you're deploying code for a service that you wrote, you want a workload pipeline. |
Hello,
Today I upgraded from 1.20 to 1.27.0.
I use test_commands for some post deployment steps and that started failing.
The buildspec that fails is
The error I'm getting with that:
Seems like it sets docker version 18 in the buildspec whereas version 20 is available in the build image.
Comparing that to the generated buildspec for the build stage generated by v1.27.0 that also sets docker to 20 like so:
I did run
copilot pipeline update
and all the changes for updating to v1.27.0 are committed to main.Manually changing the buildspec of the build project to use
docker: 20
solves the issue with logging:The text was updated successfully, but these errors were encountered: