Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 6, 2025

The temporary directory created for the karma builder will now be cleaned up after the process exits.

(cherry picked from commit 1c2d49e)

…exit

The temporary directory created for the karma builder will now be cleaned
up after the process exits.

(cherry picked from commit 1c2d49e)
@clydin clydin added the target: patch This PR is targeted for the next patch release label Oct 6, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Oct 6, 2025
@clydin clydin merged commit 7f71406 into angular:20.3.x Oct 6, 2025
34 checks passed
@clydin clydin deleted the karma/cleanup-temp-dir-20.3.x branch October 6, 2025 17:10
@PowerKiKi
Copy link
Contributor

@clydin, AFAIK this PR has been released in @angular/cli 20.3.5, and yet I still see left-over dist/test-out after running tests.

It is easy to reproduce with the one-liner below. Shall I open a new bug ? or are you able to shine some light on this situation ?

ng new my-app --interactive=false && cd my-app && ng test --watch=false && ls dist && ng version

Output:

CREATE my-app/README.md (1468 bytes)
CREATE my-app/.editorconfig (314 bytes)
CREATE my-app/.gitignore (604 bytes)
CREATE my-app/angular.json (2396 bytes)
CREATE my-app/package.json (1129 bytes)
CREATE my-app/tsconfig.json (992 bytes)
CREATE my-app/tsconfig.app.json (429 bytes)
CREATE my-app/tsconfig.spec.json (408 bytes)
CREATE my-app/.vscode/extensions.json (130 bytes)
CREATE my-app/.vscode/launch.json (470 bytes)
CREATE my-app/.vscode/tasks.json (938 bytes)
CREATE my-app/src/main.ts (222 bytes)
CREATE my-app/src/index.html (291 bytes)
CREATE my-app/src/styles.css (80 bytes)
CREATE my-app/src/app/app.css (0 bytes)
CREATE my-app/src/app/app.spec.ts (664 bytes)
CREATE my-app/src/app/app.ts (288 bytes)
CREATE my-app/src/app/app.html (20122 bytes)
CREATE my-app/src/app/app.config.ts (400 bytes)
CREATE my-app/src/app/app.routes.ts (77 bytes)
CREATE my-app/public/favicon.ico (15086 bytes)
✔ Packages installed successfully.
    Successfully initialized git.
Initial chunk files  | Names             |  Raw size
chunk-G3UOG67Z.js    | -                 |   2.50 MB | 
polyfills.js         | polyfills         |   1.03 MB | 
spec-app-app.spec.js | spec-app-app.spec | 229.96 kB | 
jasmine-cleanup-1.js | jasmine-cleanup-1 |  67.20 kB | 
test_main.js         | test_main         |  21.77 kB | 
chunk-TTULUY32.js    | -                 |   1.99 kB | 
jasmine-cleanup-0.js | jasmine-cleanup-0 | 519 bytes | 
styles.css           | styles            |  95 bytes | 

                     | Initial total     |   3.85 MB

Application bundle generation complete. [1.985 seconds] - 2025-10-10T10:11:48.456Z

10 10 2025 19:11:48.566:INFO [karma-server]: Karma v6.4.4 server started at http://localhost:9876/
10 10 2025 19:11:48.567:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
10 10 2025 19:11:48.571:INFO [launcher]: Starting browser Chrome
10 10 2025 19:11:54.031:INFO [Chrome 141.0.0.0 (Linux 0.0.0)]: Connected on socket ndtEbk4-L86pqyLNAAAB with id 68524871
Chrome 141.0.0.0 (Linux 0.0.0): Executed 2 of 2 SUCCESS (0.12 secs / 0.107 secs)
TOTAL: 2 SUCCESS
test-out         ⚠️⚠️⚠️ the directory still exists ⚠️⚠️⚠️

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    


Angular CLI: 20.3.5
Node: 22.20.0
Package Manager: yarn 1.22.22
OS: linux x64
    

Angular: 20.3.4
... common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------
@angular-devkit/architect    0.2003.5
@angular-devkit/core         20.3.5
@angular-devkit/schematics   20.3.5
@angular/build               20.3.5
@angular/cli                 20.3.5   ⚠️⚠️⚠️ the version is the latest ⚠️⚠️⚠️
@schematics/angular          20.3.5
rxjs                         7.8.2
typescript                   5.9.3
zone.js                      0.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants