-
Notifications
You must be signed in to change notification settings - Fork 73
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
[BUG] type-safe-api: intermittent ENOTEMPTY in CodeBuild #772
Comments
Having the same issue here. |
Hi I am sorry you are running into this issue.
|
I was able to reproduce this locally by running this command in parallel:
What is happening is: Process 1 creates a new directory and starts installing the I am not sure why this is presenting more now, however this would have been an issue for quite some time as apparently npx and dlx are not concurrency-safe. What is interesting is this issue is only present if the 1.) Check all I would have assumed that 1) should be resolved as the build command would be called after performing an install. In the event it falls back to 2), this will create a new folder and is where the issue you are seeing is occuring. Can you please confirm that you have As a stop gap there are two options: Option 1 - Preload the package into the npx cache (recommended)Add this before your build command: Replace Option 2 - Force your build to run seriallyAppend the Note: This will slow down your build. I would advise you to try Option 1 and report back whether this helps resolve your issue. If so I will go ahead and raise a PR to incorporate Option 1 into the PDK so you don't have to explicitly perform that step. |
To add to this, there may be other stages in the build process that rely on just in time packages like for example if using pnpm, there is a |
The issue seems to be related to the release of the latest version of pnpm, version 9. After pinning the version to version 8, the build succeeds. |
Describe the bug
After updating my PDK project from 0.23.6(I think) to version 0.23.28, I started getting intermittent build failures in the type-safe-api typescript runtime on CodeBuild. After retrying the build stage it usually succeeds.
Expected Behavior
Since the build works consistently locally, I expected it to succeed in CodeBuild, too.
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
PDK version used
0.23.28
What languages are you seeing this issue on?
Typescript, Python
Environment details (OS name and version, etc.)
MacOS 14.3.1
The text was updated successfully, but these errors were encountered: