Skip to content
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

Fix NPM Cache directory permission and PID Signalling bugs #95

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

jujaga
Copy link
Member

@jujaga jujaga commented Nov 8, 2023

Description

NPM appears to not propagate the SIGTERM signal to the child node app
on alpine. This is fixed by unwrapping the call and starting the app
directly instead. NPM cache directory permission issues have appeared
again for some external reason, so we need to mitigate by explicitly
forcing a permission update on the cache directory to be owned by a
non-root user.

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the OpenAPI 3.0 v*.api-spec.yaml documentation (if appropriate)
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

github-actions bot commented Nov 8, 2023

Coverage Report

Totals Coverage
Statements: 13.04% ( 118 / 905 )
Methods: 20.83% ( 15 / 72 )
Lines: 12.17% ( 69 / 567 )
Branches: 12.78% ( 34 / 266 )

@ghost
Copy link

ghost commented Nov 8, 2023

@jujaga jujaga force-pushed the ci/fluentbit branch 2 times, most recently from 8ad1e64 to 2e05bb3 Compare November 9, 2023 20:25
@jujaga jujaga changed the title WIP Fix NPM Cache directory permission and PID Signalling bugs Nov 9, 2023
@jujaga jujaga added the bug Something isn't working label Nov 9, 2023
@jujaga jujaga self-assigned this Nov 9, 2023
@jujaga jujaga marked this pull request as ready for review November 9, 2023 20:27
NPM appears to not propagate the SIGTERM signal to the child node app
on alpine. This is fixed by unwrapping the call and starting the app
directly instead. NPM cache directory permission issues have appeared
again for some external reason, so we need to mitigate by explicitly
forcing a permission update on the cache directory to be owned by a
non-root user.

Signed-off-by: Jeremy Ho <[email protected]>
@TimCsaky TimCsaky merged commit 818ca5e into master Nov 9, 2023
10 of 11 checks passed
@jujaga jujaga deleted the ci/fluentbit branch November 9, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants