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

Jenkins 422 error #284

Open
garmeeh opened this issue Mar 5, 2019 · 5 comments
Open

Jenkins 422 error #284

garmeeh opened this issue Mar 5, 2019 · 5 comments

Comments

@garmeeh
Copy link

garmeeh commented Mar 5, 2019

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

During the Jenkins build I get the following error:

$ bundlesize --debug
 WARN  cli config: undefined 

 WARN  package json config: [
  {
    "path": ".next/static/**/*.js"
  }
] 

 WARN  selected config: [
  {
    "path": ".next/static/**/*.js"
  }
] 

 WARN  files: [
  {
    "maxSize": null,
    "path": ".next/static/chunks/13.c46dfa3cd18da4ec1093.js",
    "size": 206563,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/chunks/commons.39924d3786e9e9a04989.js",
    "size": 106235,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/_app.js",
    "size": 12633,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/_error.js",
    "size": 169,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/auth-testing.js",
    "size": 1866,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/fake-protected.js",
    "size": 2112,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/how-it-works.js",
    "size": 29675,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/index.js",
    "size": 29557,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/intel-tool.js",
    "size": 42807,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/property.js",
    "size": 55866,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/search.js",
    "size": 56984,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/nRZSRmWqb1IE~7THbtaYq/pages/valuation-tool.js",
    "size": 55012,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/runtime/main-2cc4e36e327a74e4e03e.js",
    "size": 7377,
    "compression": "gzip"
  },
  {
    "maxSize": null,
    "path": ".next/static/runtime/webpack-5097bfc0168f8fd7810a.js",
    "size": 1163,
    "compression": "gzip"
  }
] 

 WARN  token exists: true 

 WARN  repo: "owner/repo" 

 WARN  sha: "59309b9" 

 WARN  api enabled: true 

 WARN  fetching values: "..." 

 ERROR  Could not add github status.
        422: Validation Failed 

I know that you do not support Jenkins, but any insight on what might be causing the 422 would be great.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information.

  • node version 10.X
  • npm version: yarn v1.3.2
  • Operating system
  • bundlesize version: 0.17.1
  • CI you are using: Jenkins
@siddharthkp
Copy link
Owner

ERROR  Could not add github status.
        422: Validation Failed 

Maybe: This points to the chance that your github token isn't valid.

@garmeeh
Copy link
Author

garmeeh commented Mar 7, 2019

🤔 I tried a couple of tokens just to be sure.

Also made sure access was allowed to the correct repo.

Is there anything else you can think of that might help with debugging?

@siddharthkp
Copy link
Owner

Running bundlesize with --debug flag will confirm if it was able to read the token

@garmeeh
Copy link
Author

garmeeh commented Mar 7, 2019

Thanks, I got: WARN token exists: true

@PaulKujawa
Copy link

same for us:
We use GitLab, have refreshed the token, gave the token access to our github organization, set all environment variables via a gitlab config file, set the debug flag, and got the same report with the same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants