-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Code-Pipeline: update step delayed by missing files ('/root/.cdk/cache/notices.json', 'cdk.out/tree.json') #19201
Comments
@erudisch can you please show the relevant part of your CDK code? |
I'm having the same issue. Using the cdk pipelines module, the update step is taking a lot longer to run because of the below error
Looking at the logs, this error started appearing for me some time between 1:30-2pm Friday 25/3 AEST. The only change I made to my files between pipeline runs was commenting out a single line from my app code, so nothing that should have affected the self mutate step of the pipeline. |
I'm also having this issue. This issues seems to be related to #18936 and cdk version 2.14. We also tried the flags An awesome fix would be to disable fetching of notices via environment variable. |
I'm also having this issue.
|
I was also just change a type of an input value for my lambda. nothing pipeline related |
This exactly reflects our setup |
Same here! |
same here, updating to cdk 2.15 didn't change it adding an install step of pipeline = pipelines.CodePipeline(
self,
'pipeline',
pipeline_name='myPipeline',
synth=pipelines.CodeBuildStep(
"Synth",
input=source,
install_commands=[
"mkdir -p /root/.cdk/cache/",
"npm install -g aws-cdk",
"python -m pip install --upgrade pip",
"pip install -r requirements.txt"
],
commands=[
"npx cdk version",
"node -v",
"npx cdk synth -v"
]
]
)
) |
doesn't work for me |
Same issue in CodeBuild here, cdk v1.147.0:
|
As far i can tell the PR wont help to resolve our issue, since we are using the |
The `--no-notices` flag is only being considered for actually displaying the notices, but not in the refresh step, used to mask latency. Also handling request timeout on the `Promise` level. If the promise doesn't resolve within the time limit, resolve with an empty array, no matter what. Fixes #19201. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…19226) The `--no-notices` flag is only being considered for actually displaying the notices, but not in the refresh step, used to mask latency. Also handling request timeout on the `Promise` level. If the promise doesn't resolve within the time limit, resolve with an empty array, no matter what. Fixes aws#19201. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
It's been three months since this issue was opened, has anyone been able to solve this and get a pipeline successfully pass through the UpdatePipeline - SelfMutate step? The error I receive is My pipeline exists in a monorepo setup like: packages/
client/
server/
...cdk stuff
shared/ where the cdk is in the server folder. The error seems to be searching for the cdk output after synth in the root of this monorepo instead of packages/server, despite setting the const pipeline = new cdk.pipelines.CodePipeline(this, "Pipeline", {
pipelineName: app_name + "pipeline",
// stop $1/month kms key charge
crossAccountKeys: false,
// the purpose of this step is to create a cdk.out folder via cdk synth command
synth: new cdk.pipelines.ShellStep("Synth", {
input: cdk.pipelines.CodePipelineSource.gitHub(
props!.repo_name,
props!.branch_name,
{ authentication: github_token }
),
commands: [
"yarn install",
"cd packages/server",
"yarn install",
"yarn build",
"npx cdk synth --all -c stage=" + env_name,
"mv cdk.out ../..",
],
primaryOutputDirectory: "packages/server",
}),
})
// ...
pipeline.addStage(server_stage)
pipeline.addStage(client_stage) You can see the |
Still having this issue. CDK 2.25.0 (build ae1cb4b) |
Hi, have you tried to enable dockerEnabledForSelfMutation: true, before enabling the docker configuration? (e.g.) codeBuildDefaults: {
buildEnvironment: {
buildImage: LinuxBuildImage. |
This did not work, and also, I am not using docker. Has anyone discovered any workarounds or any sample repos with a cdk codepipeline working for a monorepo? |
Hi, just noticed your setting Actually, mine looks like |
@55Cancri Reason for the issue: Hope that helps. |
In my case it had nothing to do with the output directory, I just had not pushed my pipeline change to the remote! Stupid error on my part, but the error log is not helpful so adding this here in case it helps others. |
What is the problem?
The update step gets delayed, not aborted, by trying to open two missing files.
This error delays the Update Step by almost 16 minutes.
As source action we are using github action v2.
Do you have any idea whats going on here?
Regards
Reproduction Steps
start the pipeline using a github source action
What did you expect to happen?
no read timeouts for
notice.json
andtree.json
What actually happened?
a read timeout for
notice.json
andtree.json
CDK CLI Version
[email protected]
Framework Version
No response
Node.js Version
14
OS
linux
Language
Typescript
Language Version
4.3.5
Other information
No response
The text was updated successfully, but these errors were encountered: