feat(@graphql-hive/cli): json output #16831
pr.yaml
on: pull_request
Matrix: build / build-and-dockerize
alpha
/
cli-artifacts
5m 23s
alpha
/
...
/
snapshot
1m 27s
graphql-breaking-changes
/
search-token
0s
db-types
/
diff
1m 43s
test
/
db-migrations
1m 36s
test
/
unit
2m 16s
code-style
/
eslint-and-prettier
3m 17s
typescript
/
typecheck
4m 44s
website-preview
/
deployment
5s
storybook-preview
/
deployment
5s
release-candidate
/
snapshot
Matrix: test / integration
Matrix: static-analysis / analyze
Matrix: alpha / cli-test
graphql-breaking-changes
/
check
8s
test
/
e2e
alpha
/
...
/
Build CLI Docker Image
Annotations
12 errors and 8 warnings
tests/cli/cli-error-user-input.spec.ts > CLIErrorUserInput - { command: 'whoami' }:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'whoami' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing "registry.accessToken"
- stdout--------------------------------------------:
- __NONE__
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ stdout--------------------------------------------:
+ {}
+ execute { dir: '/home/runner/work/console/console/packages/libraries/cli/bin' } { settings: {} }
+ did command.load
+ did runHook
+ SETTING THE DAMN THING true
+ handle
+ shouldPrint true
+ config.debug true
+ debug true
+ config.debug true
+ pretty---------------------------------------------
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ pretty---------------------------------------------
+ config_1.config.errorLogger, err.code !== 'EEXIT' Logger {
+ file: '/home/runner/.cache/@graphql-hive/cli/error.log',
+ buffer: [],
+ flushing: Promise { undefined }
+ } true
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
test / integration (1)
Process completed with exit code 1.
|
tests/cli/cli-error-user-input.spec.ts > CLIErrorUserInput - { command: 'whoami' }:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'whoami' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing "registry.accessToken"
- stdout--------------------------------------------:
- __NONE__
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ stdout--------------------------------------------:
+ {}
+ execute { dir: '/home/runner/work/console/console/packages/libraries/cli/bin' } { settings: {} }
+ did command.load
+ did runHook
+ SETTING THE DAMN THING true
+ handle
+ shouldPrint true
+ config.debug true
+ debug true
+ config.debug true
+ pretty---------------------------------------------
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ pretty---------------------------------------------
+ config_1.config.errorLogger, err.code !== 'EEXIT' Logger {
+ file: '/home/runner/.cache/@graphql-hive/cli/error.log',
+ buffer: [],
+ flushing: Promise { undefined }
+ } true
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
test / integration (3)
Process completed with exit code 1.
|
code-style / eslint-and-prettier:
packages/libraries/cli/src/commands/dev.ts#L16
'tb' is defined but never used. Allowed unused vars must match /^_/u
|
code-style / eslint-and-prettier
Process completed with exit code 1.
|
test / integration (2)
The job was canceled because "_1" failed.
|
test / integration (2)
The operation was canceled.
|
build / dockerize (linux/arm64)
The run was canceled by @github-actions[bot].
|
build / dockerize (linux/arm64)
The operation was canceled.
|
build / dockerize (linux/amd64)
The run was canceled by @github-actions[bot].
|
build / dockerize (linux/amd64)
The operation was canceled.
|
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
static-analysis / analyze (javascript)
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
|
static-analysis / analyze (javascript)
Unable to validate code scanning workflow: MissingPushHook
|
static-analysis / analyze (typescript)
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
|
static-analysis / analyze (typescript)
Unable to validate code scanning workflow: MissingPushHook
|
alpha / cli-test (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
hive-cli-darwin-arm64
|
41.6 MB |
|
hive-cli-darwin-x64
|
42.3 MB |
|
hive-cli-linux-arm
|
42.1 MB |
|
hive-cli-linux-x64
|
46.9 MB |
|
hive-cli-win-x64
|
37.2 MB |
|
hive-cli-win-x86
|
34.7 MB |
|