Skip to content

Repo: Unit tests occasionally run out of memory in CI #7245

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Example: #7237 -> https://github.com/typescript-eslint/typescript-eslint/actions/runs/5570322069/jobs/10174312540?pr=7237

PASS  tests/rules/indent/indent.test.ts
 PASS  tests/rules/explicit-function-return-type.test.ts
<--- Last few GCs --->
[2311:0x63a[37](https://github.com/typescript-eslint/typescript-eslint/actions/runs/5570322069/jobs/10174312540?pr=7237#step:5:38)60]   100923 ms: Scavenge 2022.3 (2074.4) -> 2018.6 (2075.9) MB, 23.69 / 0.00 ms  (average mu = 0.467, current mu = 0.[38](https://github.com/typescript-eslint/typescript-eslint/actions/runs/5570322069/jobs/10174312540?pr=7237#step:5:39)9) allocation failure; 
[2311:0x63a3760]   101009 ms: Scavenge 2024.3 (2076.4) -> 2020.3 (2079.1) MB, 18.[40](https://github.com/typescript-eslint/typescript-eslint/actions/runs/5570322069/jobs/10174312540?pr=7237#step:5:41) / 0.00 ms  (average mu = 0.467, current mu = 0.389) allocation failure; 
[2311:0x63a3760]   101055 ms: Scavenge 2027.2 (2079.4) -> 2021.7 (2096.6) MB, 12.23 / 0.00 ms  (average mu = 0.467, current mu = 0.389) allocation failure; 
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0xc9[42](https://github.com/typescript-eslint/typescript-eslint/actions/runs/5570322069/jobs/10174312540?pr=7237#step:5:43)40 node::Abort() [/opt/hostedtoolcache/node/20.4.0/x64/bin/node]
 2: 0xb6df9f  [/opt/hostedtoolcache/node/20.4.0/x64/bin/node]

Sigh.

Maybe #7112 would help with this? Hard to know without trying it out repeatedly. But either way, anecdotally I've seen this happen in at least a couple of PRs this month.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuerepo maintenancethings to do with maintenance of the repo, and not with code/docstestsanything to do with testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy