Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

flaky test: TestPromptExitCode/plugin_upgrade, estPromptExitCode/install

未关闭
#6,248 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, go
领域
cli, testing-qa

调研方向

从 cli_test.go 第 205 行附近开始,找到 TestPromptExitCode/plugin_upgrade,然后检查相关的 estPromptExitCode/install 测试和周围的 e2e 设置。确认失败是由共享的 daemon、registry 或配置状态引起的;对于此 issue,完成意味着跳过 flaky 测试,并由一个跟踪 ticket 记录所需的调查。

由索引模型根据 Issue 内容生成。

描述

area/testing kind/bug
Description

This test was recently rewritten from testing plugin upgrade with
DCT enabled to just "plugin upgrade", but there's a fair amount of
complexity in the e2e tests that set up different daemons and registries.

It's possible that tests are affecting each-other, and some state (config)
is left behind.

Let's skip the test for now, and add a tracking ticket to dig deeper.

=== FAIL: e2e/global TestPromptExitCode/plugin_upgrade (7.55s)
    cli_test.go:205: assertion failed: 
        Command:  docker plugin push registry:5000/plugin-upgrade-test:latest
        ExitCode: 1
        Error:    exit status 1
        Stdout:   The push refers to repository [registry:5000/plugin-upgrade-test]
        459089aa5943: Preparing
        adc41078d1d9: Preparing
        d7bff979db13: Preparing
        459089aa5943: Preparing
        
        Stderr:   error pushing plugin: failed to do request: Head "https://registry:5000/v2/plugin-upgrade-test/blobs/sha256:adc41078d1d937495df2f90444e5414a01db31e5a080f8aa4f163c64d41abd11": http: server gave HTTP response to HTTPS client
        
        
        Failures:
        ExitCode was 1 expected 0
        Expected no error
主要语言
Go
星标
6.1k
派生
2.2k
平均合并
1 天 10 小时
30 天内合并 PR
47

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/cli 的其他 Issue

查看 docker/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。