make_ssl_certs: run at build time, update reference test data automatically
未關閉
還沒有人認領這個 Issue。
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
As discussed here:
https://github.com/python/cpython/pull/107594
make_ssl_certs.py has a few shortcomings. In particular:
- it generates certificates, but does not update reference data in tests that use them, instead asking the user to copy paste the data by hand (expiration dates and serial numbers in particular)
- it is supposed to be run by hand and isn't executed in builds, which means its output has to be checked into git, cluttering the source tree, and complicating reviews of pull requests that change that output.
- expiration dates are hardcoded into the tool and can't be passed in as parameters
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-119401
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 make_ssl_certs.py 和連結的 PR gh-119401,接著檢查使用其憑證的參考測試資料。當憑證產生會在建置期間執行、自動更新參考資料,並且接受將到期日期作為參數而不需要簽入產生的輸出時,工作就完成了。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- build-system, testing
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100