Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TestReconcile_LicenseRotationUploadsNewSecretValue fails at -count=3 (reuses a control plane name)

オープン 初心者向け
#320 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, kubernetes
領域
testing

調査の方向性

失敗しているテストは、internal/controller/codercontrolplane_controller_test.go の895行目にある TestReconcile_LicenseRotationUploadsNewSecretValue です。まず、このテストが CoderControlPlane にどのような名前を付けているか、そしてそのクリーンアップが envtest 内でそのオブジェクトをどのように削除しているかを読んでください。GOFLAGS=-mod=vendor go test ./internal/controller/ -run 'TestReconcile_LicenseRotationUploadsNewSecretValue$' -count=3 で再現します。繰り返し実行がすべて成功すれば完了です。名前の修正や削除完了の待機処理の修正によって、テストのアサーションを変更しないでください。

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

説明

Summary

TestReconcile_LicenseRotationUploadsNewSecretValue (internal/controller/codercontrolplane_controller_test.go:895) fails when run with -count=3. It reuses a fixed CoderControlPlane name, and a later run starts before envtest has removed the object from the earlier run.

Reproduce

GOFLAGS=-mod=vendor go test ./internal/controller/ -run 'TestReconcile_LicenseRotationUploadsNewSecretValue$' -count=3

The #156 worker reported this while it ran repeated tests for #316. I did not reproduce it myself.

Fix

Give each run a unique name (for example a suffix from t.Name() plus a counter or random string), or wait until the object is gone in cleanup. CI runs each test once, so CI is not affected today.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium

主要言語
Go
スター
5
フォーク
3
平均マージ
3時間
マージ済み PR(30日)
192

環境構築

はじめの一歩

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

coder/coder-k8s のほかの issue

coder/coder-k8s の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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