Skip to content
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

Investigate intermittent Vercel deployment failure #7166

Closed
mikehardy opened this issue Jun 5, 2023 · 1 comment · Fixed by #7201
Closed

Investigate intermittent Vercel deployment failure #7166

mikehardy opened this issue Jun 5, 2023 · 1 comment · Fixed by #7201
Assignees
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report

Comments

@mikehardy
Copy link
Collaborator

Issue

Current main branch is intermittently failing on Vercel

You may detect this by looking at the commit history of the repository and looking for the green checkmarks or red Xs per-commit, you will see quite a few red Xs and if you hover over them to get details you'll see it is the Vercel deployment failing.

Sometimes it works though, with no change to the related code or dependencies, so it is intermittent

I reproduce it locally though, when running the commands that fail:

  1. cd website
  2. yarn
  3. ``yarn run build`

mike@win-osxvm2:~/work/invertase/react-native-firebase/website (@mikehardy/dependency-updates) % yarn run build
yarn run v1.22.19
warning package.json: "dependencies" has dependency "typescript" with range "^4.8.4" that collides with a dependency in "devDependencies" of the same name with version "^3.7.5"
$ gatsby build
success open and validate gatsby-configs - 0.383s
success load plugins - 0.672s
success onPreInit - 0.087s
success delete html and css files from previous builds - 0.007s
success initialize cache - 0.030s
success copy gatsby files - 0.192s
success onPreBootstrap - 0.021s
success createSchemaCustomization - 0.004s
/Users/mike/work/invertase/react-native-firebase/tsconfig.json
⠴ source and transform nodes

Using TypeScript 4.9.5 from /Users/mike/work/invertase/react-native-firebase/website/node_modules/typescript/lib
warn DeprecationWarning: 'isIdentifierOrPrivateIdentifier' has been deprecated since v4.2.0. Use `isMemberName` instead.
⠴ source and transform nodes

JSON written to /Users/mike/work/invertase/react-native-firebase/website/typedoc.json
Failed to validate error Error [ValidationError]: "reasonCode" is not allowed. "syntaxPlugin" is not allowed. "loc" is not allowed. "pos" is not allowed
    at Object.exports.process (/Users/mike/work/invertase/react-native-firebase/website/node_modules/@hapi/joi/lib/errors.js:202:19)
    at internals.Object._validateWithOptions (/Users/mike/work/invertase/react-native-firebase/website/node_modules/@hapi/joi/lib/types/any/index.js:763:31)
    at internals.Object.validate (/Users/mike/work/invertase/react-native-firebase/website/node_modules/@hapi/joi/lib/types/any/index.js:797:21)
    at constructError (/Users/mike/work/invertase/react-native-firebase/website/node_modules/gatsby-cli/lib/structured-errors/construct-error.js:52:32)
    at Reporter.error (/Users/mike/work/invertase/react-native-firebase/website/node_modules/gatsby-cli/lib/reporter/reporter.js:135:59)
    at Reporter.panic (/Users/mike/work/invertase/react-native-firebase/website/node_modules/gatsby-cli/lib/reporter/reporter.js:75:34)
    at Object.panic (/Users/mike/work/invertase/react-native-firebase/website/node_modules/gatsby/src/utils/api-runner-node.js:213:16)
    at /Users/mike/work/invertase/react-native-firebase/website/scripts/source-reference.js:90:22
    at Array.forEach (<anonymous>)
    at /Users/mike/work/invertase/react-native-firebase/website/scripts/source-reference.js:64:25
    at Array.forEach (<anonymous>)
    at sourceReference (/Users/mike/work/invertase/react-native-firebase/website/scripts/source-reference.js:42:12)
    at Object.exports.sourceNodes (/Users/mike/work/invertase/react-native-firebase/website/gatsby-node.js:24:46)
    at runAPI (/Users/mike/work/invertase/react-native-firebase/website/node_modules/gatsby/src/utils/api-runner-node.js:485:16) {
  isJoi: true,
  details: [
    {
      message: '"reasonCode" is not allowed',
      path: [Array],
      type: 'object.allowUnknown',
      context: [Object]
    },
    {
      message: '"syntaxPlugin" is not allowed',
      path: [Array],
      type: 'object.allowUnknown',
      context: [Object]
    },
    {
      message: '"loc" is not allowed',
      path: [Array],
      type: 'object.allowUnknown',
      context: [Object]
    },
    {
      message: '"pos" is not allowed',
      path: [Array],
      type: 'object.allowUnknown',
      context: [Object]
    }
  ],
  _object: {
    context: {},
    code: 'BABEL_PARSE_ERROR',
    reasonCode: 'UnterminatedJsxContent',
    syntaxPlugin: 'jsx',
    loc: Position { line: 9, column: 16, index: 423 },
    pos: 423,
    pluginName: 'default-site-plugin',
    text: 'There was an error',
    level: 'ERROR',
    stack: [],
    docsUrl: 'https://gatsby.dev/issue-how-to'
  },
  annotate: [Function (anonymous)]
}
not finished source and transform nodes - 34.028s

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@mikehardy mikehardy added type: bug New bug report help: needs-triage Issue needs additional investigation/triaging. labels Jun 5, 2023
@mikehardy mikehardy self-assigned this Jun 5, 2023
@mikehardy
Copy link
Collaborator Author

mikehardy commented Jun 5, 2023

First time it happened was 6 days ago, it has been intermittent but worsening since then. Not sure what changed in the dependency graph unfortunately and just verified that the dependencies there are not locked so something must have slid out of a compatible range 😬

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant