-
Notifications
You must be signed in to change notification settings - Fork 153
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
[JS] Tests fail with node 23. #1995
Comments
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
…nd Google style #1987 This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
…nd Google style #1987 #1995 This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
…nd Google style #1987 #1995 This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. Also updates GitHub actions configuration to run tests for these node versions: - 20 - 21 - 22 - 23 (temporarily disabled since it is failing #1995) ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
11 tasks
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
…nd Google style #1987 #1995 This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. Also updates GitHub actions configuration to run tests for these node versions: - 20 - 21 - 22 - 23 (temporarily disabled since it is failing #1995) ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. - [ ] Update `bin/setup` to default to node 22. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [ ] Update biome configuration to respect editorconfig and ignore some more directories. - [ ] Fix some lint in TypeScript files. - [ ] Update .gitignore to exclude .cache dir. - [ ] Update workflows to use node version 20-23. - [ ] Update `bin/setup` to use node version 22 as default on eng workstations. - [ ] Adds additional script commands to run lint and format checks. - [ ] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [ ] Update biome configuration to respect editorconfig and ignore some more directories. - [ ] Fix some lint in TypeScript files. - [ ] Update .gitignore to exclude .cache dir. - [ ] Update workflows to use node version 20-23. - [ ] Update `bin/setup` to use node version 22 as default on eng workstations. - [ ] Adds additional script commands to run lint and format checks. - [ ] Clean up copyright headers in GitHub action configuration.
7 tasks
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
…nd Google style #1987 #1995 This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. Also updates GitHub actions configuration to run tests for these node versions: - 20 - 21 - 22 - 23 (temporarily disabled since it is failing #1995) ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. - [ ] Update `bin/setup` to default to node 22. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. Also updates GitHub actions configuration to run tests for these node versions: - 20 - 21 - 22 - 23 (temporarily disabled since it is failing #1995) ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. - [ ] Update `bin/setup` to default to node 22. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
@hugomurillomtz please enable testing on node version 23 when this is fixed. #1988 currently doesn't enable it. |
I believe I have these errors cleaned up as part of |
Merged
3 tasks
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
that referenced
this issue
Feb 15, 2025
This speeds up formatting by 4-12x and fixes several formatting related issues whether they have to do with the commit message, source code, or license headers. This means faster CI and pre-commits. Also updates GitHub actions configuration to run tests for these node versions: - 20 - 21 - 22 - 23 (temporarily disabled since it is failing #1995) ISSUE: #1987 ISSUE: #1995 CHANGELOG: - [ ] Update `pnpm run format` to use biomejs - [ ] Update `pnpm run format:check` to use biomejs - [ ] Use `bin/add_license` to add license headers. - [ ] Exclude the `py/` and `go/` runtimes from the formatter. - [ ] Fix Import attributes cannot be used with a type-only import error - [ ] Update all the TypeScript files to use Google-style formatting. - [ ] Re-enable pre-commit formatting for TypeScript. - [ ] Update the JavaScript GitHub action workflows so that JS tests run on node version 20-23. - [ ] Update `bin/setup` to default to node 22. BENCHMARKS: ``` zsh❯ hyperfine -i "pnpm run format:biome" "pnpm run format:prettier" Benchmark 1: pnpm run format:biome Time (mean ± σ): 453.6 ms ± 5.6 ms [User: 679.3 ms, System: 92.5 ms] Range (min … max): 447.9 ms … 465.3 ms 10 runs Warning: Ignoring non-zero exit code. Benchmark 2: pnpm run format:prettier Time (mean ± σ): 5.715 s ± 0.285 s [User: 9.578 s, System: 0.739 s] Range (min … max): 5.506 s … 6.426 s 10 runs Summary pnpm run format:biome ran 12.60 ± 0.65 times faster than pnpm run format:prettier ``` A sample run follows: ``` zsh❯ pnpm run format > genkit@ format /Users/yesudeep/code/github.com/firebase/genkit > pnpm dlx @biomejs/biome format --write . && (tsx scripts/copyright.ts) Formatted 663 files in 86ms. Fixed 217 files. Checking copyright in sources... Updated copyright headers in 0 files ``` REFERENCES: The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [ ] https://google.github.io/styleguide/tsguide.html#string-literals - [ ] https://google.github.io/styleguide/jsguide.html - [ ] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [ ] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 15, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 16, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
to google/dotprompt
that referenced
this issue
Feb 16, 2025
ISSUE: firebase/genkit#1995 CHANGELOG: - [x] Update biome configuration to respect editorconfig and ignore some more directories. - [x] Fix some lint in TypeScript files. - [x] Update .gitignore to exclude .cache dir. - [x] Update workflows to use node version 20-23. - [x] Update `bin/setup` to use node version 22 as default on eng workstations. - [x] Adds additional script commands to run lint and format checks. - [x] Clean up copyright headers in GitHub action configuration.
yesudeep
added a commit
that referenced
this issue
Feb 16, 2025
…1995 ISSUE: #1995 CHANGELOG: - [x] Update biome configuration to use arrow function arg parens always. - [x] Update github workflows to test on node versions 20 through 22. - [x] We will add version #23 post fixes. - [x] Set node 22 to be the default for our eng workstations in the setup script for now. The configuration for the formatting is more or less based on the Google TypeScript formatting guidelines at: - [x] https://google.github.io/styleguide/tsguide.html#string-literals - [x] https://google.github.io/styleguide/jsguide.html - [x] https://google.github.io/styleguide/tsguide.html#arrow-function-bodies - [x] https://google.github.io/styleguide/tsguide.html#automatic-semicolon-insertion
@yesudeep, I think you meant @hugoaguirre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
JS unit tests fail with node version 23.
To Reproduce
Expected behavior
Tests should pass.
Screenshots

Runtime (please complete the following information):
** Node version
Additional context
The text was updated successfully, but these errors were encountered: