💾 feat: Add Memory Configuration Options for CI unit tests

- configured GitHub Actions workflows with configurable Node.js heap allocation, defaults to 6144 MiB
- added heap usage logging for memory monitoring and debugging
- increased Docker frontend build memory allocation to ensure consistent memory limits
- optimized Jest timeout for tokenSplit test
This commit is contained in:
Doyle 2025-11-10 11:45:03 -05:00
parent 3213f574c6
commit b8fe41e59d
11 changed files with 31 additions and 7 deletions

View file

@ -7,7 +7,7 @@
"server-dev": "echo 'please run this from the root directory'",
"test": "cross-env NODE_ENV=test jest",
"b:test": "NODE_ENV=test bun jest",
"test:ci": "jest --ci",
"test:ci": "jest --ci --logHeapUsage",
"add-balance": "node ./add-balance.js",
"list-balances": "node ./list-balances.js",
"user-stats": "node ./user-stats.js",

View file

@ -11,3 +11,5 @@ OPENAI_API_KEY=your-api-key
BAN_VIOLATIONS=true
BAN_DURATION=7200000
BAN_INTERVAL=20
NODE_MAX_OLD_SPACE_SIZE=6144

View file

@ -16,3 +16,5 @@ process.env.ALLOW_EMAIL_LOGIN = 'true';
// This can be overridden in individual tests if needed
jest.setTimeout(30000);
process.env.OPENAI_API_KEY = 'test';
process.env.NODE_MAX_OLD_SPACE_SIZE = '6144';