release create sends no project unless --project is set

オープン
#2,534 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
63/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
cli

調査の方向性

Start in packages/cli/src/commands/release/create.ts near the body.projects assignment and read how ReleaseTarget resolves the organization and version. Compare project resolution with lib/resolve-target.ts and the sourcemap upload and issue list commands. Reproduce a plain release create using configured project settings, then verify the request includes the resolved project and that --project still works.

索引モデルが issue の本文から書いたものです。

説明

sentry release create <version> only sends projects when --project is passed. It never falls back to the project the CLI resolves for other commands (SENTRY_PROJECT, .sentryclirc [defaults], DSN detection), so a plain release create most likely gets a 400 from Sentry.

  • packages/cli/src/commands/release/create.ts (~L177) sets body.projects only from flags.project. Its ReleaseTarget resolves only the org and version.
  • No command under packages/cli/src/commands/release/ uses lib/resolve-target.ts, the shared org/project auto-detection that sourcemap upload (resolveOrgAndProject) and issue list use.
  • Sentry's release POST requires projects: ReleaseSerializerWithProjects.projects in getsentry/sentry src/sentry/api/endpoints/organization_releases.py has no required=False.
  • --project is documented as optional, so v3 CI jobs that relied on SENTRY_PROJECT with sentry-cli releases new break after migrating. This also affects the sentry wizard Wrangler deploy script in getsentry/toolkit#2529.
  • Found by reading the code; not yet reproduced against a server.

@BYK: the original intent was likely to auto-detect the project like issue list does.

via @BYK.

--

View Session [Sentry]

主要言語
TypeScript
スター
975
フォーク
189
平均マージ
19時間 57分
マージ済み PR(30日)
542

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/toolkit のほかの issue

getsentry/toolkit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。