Skip to content

chore(tests): Ensure we terminate Verdaccio#199

Merged
jsteinich merged 1 commit into
open-constructs:mainfrom
gabegorelick:local-registry-termination
May 26, 2026
Merged

chore(tests): Ensure we terminate Verdaccio#199
jsteinich merged 1 commit into
open-constructs:mainfrom
gabegorelick:local-registry-termination

Conversation

@gabegorelick
Copy link
Copy Markdown
Contributor

@gabegorelick gabegorelick commented May 24, 2026

Verdaccio was introduced in 548aa63 so that tests could install the CLI from an npm registry, similar to how real users install it. Unfortunately, we didn't always kill it after we were done.

Related issue

Fixes #

Description

Integration tests often leave orphaned verdaccio processes around. This can cause subsequent test runs to fail.

Checklist

  • I have updated the PR title to match CDKTN's style guide
  • I have run the linter on my code locally
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if applicable
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works if applicable
  • New and existing unit tests pass locally with my changes

Comment thread test/local-registry.sh
Verdaccio was introduced in 548aa63 so that tests could install the CLI
from an npm registry, similar to how real users install it.
Unfortunately, we didn't always kill it after we were done.
@gabegorelick gabegorelick force-pushed the local-registry-termination branch from 9b30fd5 to 6241720 Compare May 24, 2026 01:29
Comment thread test/local-registry.sh
@so0k
Copy link
Copy Markdown
Contributor

so0k commented May 24, 2026

lgtm, but would like @X-Guardian comments

Comment thread test/run-against-dist
@gabegorelick gabegorelick marked this pull request as ready for review May 24, 2026 02:02
@gabegorelick gabegorelick requested a review from a team as a code owner May 24, 2026 02:02
Comment thread test/local-registry.sh
@X-Guardian
Copy link
Copy Markdown
Contributor

Please see this comment: #202 (review)

@gabegorelick
Copy link
Copy Markdown
Contributor Author

Please see this comment: #202 (review)

@X-Guardian since there seems to be active discussion around the rewrite of the local-registry script, I think it may be best if we merge this PR first. It's easy for #202 to resolve the conflicts introduced by this PR, since it rewrites all of the local-registry script anyway.

@jsteinich jsteinich merged commit 8c3b757 into open-constructs:main May 26, 2026
261 checks passed
so0k added a commit that referenced this pull request Jun 5, 2026
## 0.23.3

### chore

- chore(gha): run integration tests on Depot runners
[\#238](#238)
- chore(deps): bump typescript to 5.9.3 across the repo
[\#231](#231)
- chore: Upgrade jsii
[\#223](#223)
- chore: Revise README links to documentation and language support
[\#221](#221)
- chore: Pin node version to 22.22.2 via .nvmrc
[\#212](#212)
- chore: Add gradle cache to the examples and integration CI workflows
[\#211](#211)
- chore: Add PR workflow concurrency group and CI Label Filter job
[\#204](#204)
- chore(tests): add verdaccio to package.json
[\#202](#202)
- chore(tests): don't require other language builds
[\#201](#201)
- chore(tests): Ensure we terminate Verdaccio
[\#199](#199)
- chore: rewrite https://cdk.tf links
[\#197](#197)
- chore: Update examples help files
[\#194](#194)

### feat

- feat: faster JSON stringify
[\#224](#224)
- feat(lib): allow disabling creation stacks
[\#215](#215)

### fix

- fix(lib): surface stderr/stdout on exec() failures via toString()
[\#207](#207)

---------

Co-authored-by: so0k <vincent.drl@gmail.com>
Co-authored-by: sakul-learning <lucas@sheesh.host>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants