Skip to content

feat(@graphql-hive/cli): json output #16831

feat(@graphql-hive/cli): json output

feat(@graphql-hive/cli): json output #16831

Triggered via pull request December 20, 2024 19:17
Status Cancelled
Total duration 7m 57s
Billable time 16m
Artifacts 6

pr.yaml

on: pull_request
Matrix: build / build-and-dockerize
graphql-breaking-changes  /  search-token
0s
graphql-breaking-changes / search-token
db-types  /  diff
1m 43s
db-types / diff
test  /  db-migrations
1m 36s
test / db-migrations
test  /  unit
2m 16s
test / unit
code-style  /  eslint-and-prettier
3m 17s
code-style / eslint-and-prettier
typescript  /  typecheck
4m 44s
typescript / typecheck
website-preview  /  deployment
5s
website-preview / deployment
storybook-preview  /  deployment
5s
storybook-preview / deployment
release-candidate  /  snapshot
release-candidate / snapshot
Matrix: test / integration
Matrix: static-analysis / analyze
build  /  publish multiarch manifest
0s
build / publish multiarch manifest
Matrix: alpha / cli-test
alpha  /  Extract CLI version
0s
alpha / Extract CLI version
graphql-breaking-changes  /  check
8s
graphql-breaking-changes / check
test  /  e2e
test / e2e
alpha  /  ...  /  Build CLI Docker Image
alpha / publish_docker / Build CLI Docker Image
Fit to window
Zoom out
Zoom in

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