用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gravitational/teleport --skill flaky-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when reviewing who can access which resources in a Teleport cluster, or whether that access is actually used — access list / ACL recertification, "who can reach this database/server", "what can this user access", attesting access for audit/compliance, and finding dormant or unused standing privileges. Covers `tctl access-review`, the `access_path` SQL query language, output semantics, and combining it with `tctl investigate`.
Use when investigating identity or resource activity in a Teleport cluster. Covers `tctl investigate` filter semantics, fast facet-only exploration, custom Lucene query construction, and token-efficient parsing patterns.
Use for Teleport access list work with tctl; listing available resources (servers, databases, apps, etc.) before choosing an access grant target, creating new access lists, updating existing lists, or deleting/retiring lists. Trigger for requests like "give alice access", "create an access list", "standing access", "Access Request", "custom access list", "show/list apps", "show AWS IC permission sets", "add AWS IC to this list", "change owners/members/access", "remove access", "delete/retire/tear down an access list". Handles access-type lists where Teleport creates supporting roles, and custom lists that grant existing roles/traits.
基于 SOC 职业分类
正在显示 SKILL.md
| name | flaky-test |
| description | Run when the user asks to investigate, troubleshoot, or fix a flaky Go test. |
You are debugging a flaky test. In Teleport, flaky tests often pass locally on powerful developer machines, but then fail on constrained CI/CD hardware.
Sometimes the problem is due to the way the test is written, but there are plenty of occaisions where the flaky test is highlighting a problem in the implementation itself.
go test -c -o flaky.test .stress tool:
stress -failfast -p 30 ./flaky.test -test.run TestNameHere.
If stress is not installed it can be installed with
go install golang.org/x/tools/cmd/stress@latest.
You may need to increase the -p (parallelism) flag in order to reproduce
the flake. Avoid increasing the parallelism too much. Anything above -p 100
starts to induce failures in common setup logic rather than in the test itself.stress until it passes consistently.flaky.test binary. Do not make any commits,
the developer will want to review your changes and make adjustments.Prefer deterministic changes like channel-based notifications or
testing/synctest over retry-based solutions like require.Eventually.
Extending the timeout of a test is usually an anti-pattern. Try to fix the bug
in the implementation or rewrite the test to run faster.
Another way to make tests more reliable is to make them do less. Look for opportunities to improve the runtime of the test. This might mean optimizing the underlying code, better isolating the feature under test, or disabling features that are enabled by default but otherwise unnecessary for the feature being tested.