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

2.21.3 breaks release upload for @sentry/webpack-plugin #2095

Closed
1 of 8 tasks
edzis opened this issue Jul 2, 2024 · 2 comments
Closed
1 of 8 tasks

2.21.3 breaks release upload for @sentry/webpack-plugin #2095

edzis opened this issue Jul 2, 2024 · 2 comments

Comments

@edzis
Copy link

edzis commented Jul 2, 2024

CLI Version

>= 2.21.3

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

public.ecr.aws/docker/library/node:20-buster

Link to reproduction repository

No response

CLI Command

No response

Exact Reproduction Steps

  1. upgrade from https://github.com/getsentry/sentry-cli/releases/tag/2.21.2 to https://github.com/getsentry/sentry-cli/releases/tag/2.21.3 (using package.json resolutions)
  2. Run CI/CD

Expected Results

$ NODE_CONFIG_ENV=${NODE_CONFIG_ENV:-prd} NODE_APP_INSTANCE=${NODE_APP_INSTANCE:-cloud} NODE_ENV=production webpack --config ./webpack/webpack.config.ts
[sentry-webpack-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
  INFO    2024-07-02 08:25:25.848371642 +00:00 Loaded config from /__w/MY_GH_PROJECT/MY_GH_PROJECT/.sentryclirc
  DEBUG   2024-07-02 08:25:25.848518616 +00:00 sentry-cli version: 2.21.2, platform: "linux", architecture: "x86_64"
  INFO    2024-07-02 08:25:25.848537422 +00:00 sentry-cli was invoked with the following command line: "/__w/MY_GH_PROJECT/MY_GH_PROJECT/node_modules/@sentry/cli/sentry-cli" "releases" "files" "3.42.5-dd3ca19" "upload-sourcemaps" "/__w/MY_GH_PROJECT/MY_GH_PROJECT/dist/cloud" "--ignore" "node_modules" "--strip-prefix" "cloud" "--validate" "--ext" ".js" "--ext" ".map" "--ext" ".jsbundle" "--ext" ".bundle"
  DEBUG   2024-07-02 08:25:25.848973547 +00:00 request GET https://sentry.io/api/0/organizations/MY_SENTRY_ORG/chunk-upload/
  DEBUG   2024-07-02 08:25:25.848991886 +00:00 pipeline: webpack-plugin/2.20.1
  DEBUG   2024-07-02 08:25:25.849000608 +00:00 using token authentication
  DEBUG   2024-07-02 08:25:25.849014827 +00:00 retry number 0, max retries: 0
  DEBUG   2024-07-02 08:25:25.875687512 +00:00 > GET /api/0/organizations/MY_SENTRY_ORG/chunk-upload/ HTTP/1.1
  DEBUG   2024-07-02 08:25:25.875704190 +00:00 > Host: sentry.io
  DEBUG   2024-07-02 08:25:25.875709601 +00:00 > Accept: */*
  DEBUG   2024-07-02 08:25:25.875714096 +00:00 > Connection: TE
  DEBUG   2024-07-02 08:25:25.875718590 +00:00 > TE: gzip
  DEBUG   2024-07-02 08:25:25.875723868 +00:00 > User-Agent: sentry-cli/2.21.2 webpack-plugin/2.20.1
  DEBUG   2024-07-02 08:25:25.876146793 +00:00 > Authorization: ***
  DEBUG   2024-07-02 08:25:26.042880993 +00:00 < HTTP/1.1 200 OK
  DEBUG   2024-07-02 08:25:26.042905048 +00:00 < server: nginx
  DEBUG   2024-07-02 08:25:26.042914790 +00:00 < date: Tue, 02 Jul 2024 08:25:26 GMT
  DEBUG   2024-07-02 08:25:26.04292[17](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:18)76 +00:00 < content-type: application/json
  DEBUG   2024-07-02 08:25:26.042928671 +00:00 < vary: Accept-Encoding,Accept-Language, Cookie
  DEBUG   2024-07-02 08:25:26.042934664 +00:00 < allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-07-02 08:25:26.042941022 +00:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-07-02 08:25:26.042956859 +00:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-07-02 08:25:26.042967093 +00:00 < access-control-expose-headers: X-Sentry-Error, X-Sentry-Direct-Hit, X-Hits, X-Max-Hits, Endpoint, Retry-After, Link
  DEBUG   2024-07-02 08:25:26.042975710 +00:00 < access-control-allow-origin: *
  DEBUG   2024-07-02 08:25:26.042985568 +00:00 < x-sentry-rate-limit-remaining: 99
  DEBUG   2024-07-02 08:25:26.042993127 +00:00 < x-sentry-rate-limit-limit: 100
  DEBUG   2024-07-02 08:25:26.043000499 +00:00 < x-sentry-rate-limit-reset: 17[19](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:20)908726
  DEBUG   2024-07-02 08:25:26.043008036 +00:00 < x-sentry-rate-limit-concurrentremaining: 99
  DEBUG   2024-07-02 08:25:26.043016989 +00:00 < x-sentry-rate-limit-concurrentlimit: 100
  DEBUG   [20](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:21)24-07-02 08:25:26.043023553 +00:00 < content-language: en
  DEBUG   2024-07-02 08:25:26.043030161 +00:00 < x-frame-options: deny
  DEBUG   2024-07-02 08:25:26.043037697 +00:00 < x-content-type-options: nosniff
  DEBUG   2024-07-02 08:25:26.043046420 +00:00 < x-xss-protection: 1; mode=block
  DEBUG   2024-07-02 08:25:26.043055877 +00:00 < content-security-policy: font-src * data:; style-src * 'unsafe-inline'; media-src *; img-src * blob: data:; worker-src blob:; frame-src app.pendo.io demo.arcade.software js.stripe.com sentry.io; frame-ancestors 'self' *.sentry.io; script-src 'self' 'unsafe-inline' 'report-sample' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; connect-src 'self' *.algolia.net *.algolianet.com *.algolia.io sentry.io *.sentry.io s1.sentry-cdn.com o1.ingest.sentry.io api2.amplitude.com app.pendo.io data.pendo.io reload.getsentry.net t687h3m0nh65.statuspage.io sentry.zendesk.com ekr.zdassets.com maps.googleapis.com; object-src 'none'; default-src 'none'; base-uri 'none'; report-uri https://o1.ingest.sentry.io/api/54785
  DEBUG   2024-07-02 08:25:26.0430670[21](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:22) +00:00 < x-envoy-attempt-count: 1
  DEBUG   2024-07-02 08:25:26.043074158 +00:00 < x-envoy-upstream-service-time: 113
  DEBUG   2024-07-02 08:25:26.043083374 +00:00 < x-served-by: getsentry-web-rpc-production-554fb947ff-xbb46
  DEBUG   2024-07-02 08:25:26.043090750 +00:00 < x-sentry-proxy-url: http://10.2.0.67:8999/api/0/organizations/MY_SENTRY_ORG/chunk-upload/
  DEBUG   2024-07-02 08:25:26.043100066 +00:00 < x-served-by: getsentry-control-web-default-common-production-7857fdc77cgn9d9
  DEBUG   2024-07-02 08:25:26.0431071[22](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:23) +00:00 < x-served-by: frontend-default-65dd9bd965-tfskh
  DEBUG   2024-07-02 08:25:26.043113113 +00:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
  DEBUG   2024-07-02 08:25:26.043120544 +00:00 < via: 1.1 google
  DEBUG   2024-07-02 08:25:26.043139438 +00:00 < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  DEBUG   2024-07-02 08:25:26.043145974 +00:00 < Transfer-Encoding: chunked
  DEBUG   2024-07-02 08:25:26.045216658 +00:00 response status: 200
  DEBUG   2024-07-02 08:25:26.045[23](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757482769/job/26929963125#step:13:24)0239 +00:00 body: {"url":"https://us.sentry.io/api/0/organizations/MY_SENTRY_ORG/chunk-upload/","chunkSize":8388608,"chunksPerRequest":64,"maxFileSize":2147483648,"maxRequestSize":33554432,"concurrency":8,"hashAlgorithm":"sha1","compression":["gzip"],"accept":["debug_files","release_files","pdbs","sources","bcsymbolmaps","il2cpp","portablepdbs","artifact_bundles","artifact_bundles_v2"]}
> Found 29 files

Actual Results

Command failed: /__w/MY_GH_PROJECT/MY_GH_PROJECT/node_modules/@sentry/cli/sentry-cli releases new 3.42.5-d1b8a02

Logs

$ NODE_CONFIG_ENV=${NODE_CONFIG_ENV:-prd} NODE_APP_INSTANCE=${NODE_APP_INSTANCE:-cloud} NODE_ENV=production webpack --config ./webpack/webpack.config.ts
[sentry-webpack-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
Error: Command failed: /__w/MY_GH_PROJECT/MY_GH_PROJECT/node_modules/@sentry/cli/sentry-cli releases new 3.42.5-d1b8a02
  INFO    2024-07-02 08:20:59.030995592 +00:00 Loaded config from /__w/MY_GH_PROJECT/MY_GH_PROJECT/.sentryclirc
  DEBUG   2024-07-02 08:20:59.031113543 +00:00 sentry-cli version: 2.21.3, platform: "linux", architecture: "x86_64"
  INFO    2024-07-02 08:20:59.031123709 +00:00 sentry-cli was invoked with the following command line: "/__w/MY_GH_PROJECT/MY_GH_PROJECT/node_modules/@sentry/cli/sentry-cli" "releases" "new" "3.42.5-d1b8a02"
  DEBUG   2024-07-02 08:20:59.031671667 +00:00 request POST https://sentry.io/api/0/projects/MY_SENTRY_ORG/MY_SENTRY_PROJECT/releases/
  DEBUG   2024-07-02 08:20:59.031683202 +00:00 pipeline: webpack-plugin/2.20.1
  DEBUG   2024-07-02 08:20:59.031691318 +00:00 using token authentication
  DEBUG   2024-07-02 08:20:59.03[17](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757418579/job/26929777092#step:13:18)04478 +00:00 json body: {"version":"3.42.5-d1b8a02","projects":["MY_SENTRY_PROJECT"],"dateStarted":"2024-07-02T08:20:59.031647900Z"}
  DEBUG   2024-07-02 08:20:59.031710841 +00:00 retry number 0, max retries: 0
error: API request failed
  caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)
  DEBUG   2024-07-02 08:20:59.034459835 +00:00 skipping update nagger because session is not attended

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:5[19](https://github.com/MY_GH_ORG/MY_GH_PROJECT/actions/runs/9757418579/job/26929777092#step:13:20):28)
    at ChildProcess.emit (node:domain:488:12)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Socket.emit (node:domain:488:12)
    at Pipe.<anonymous> (node:net:338:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: '/__w/MY_GH_PROJECT/MY_GH_PROJECT/node_modules/@sentry/cli/sentry-cli releases new 3.42.5-d1b8a02'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jul 2, 2024
@szokeasaurusrex
Copy link
Member

This issue looks like it might be a duplicate of #1929. Can you please check that issue to see if it appears to be the same as what you are experiencing?

If this is indeed a duplicate, please close the issue as such. Otherwise, please explain how your problem differs from #1929.

@edzis
Copy link
Author

edzis commented Jul 4, 2024

@szokeasaurusrex Thanks, this does indeed look like a duplicate of #1929

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

No branches or pull requests

2 participants