Repository navigation
fix: dùng setup-uv ở job verify và tăng thời gian chờ PyPI index - #13
Merged
Merged
Conversation
Owner
Author
Sau commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tóm tắt thay đổi
Sửa hai lỗi hạ tầng khiến job
verifytrong pipeline phát hành (Run 44247642348của tagv0.2.0) thất bại dù package đã được upload thành công lên PyPI:.github/workflows/publish.yml&.github/workflows/testpypi.yml(jobverify):actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1(# v6) bằngastral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9(# v7,version: "0.13.0",enable-cache: false) và chạy quauv run --no-project --python "${{ matrix.python-version }}" python -I scripts/smoke_index.py .... Khắc phục lỗiThe version '3.9' with architecture 'x64' was not found for Ubuntu 26.04khiubuntu-latestchạy trên Ubuntu 26.04 LTS.--delaycủascripts/smoke_index.pytừ10giây lên20giây (--attempts 6 --delay 20, tổng cửa sổ chờ tối đa 100 giây) để tránh lỗi sớm khi CDN của PyPI chưa đồng bộ xong trong khoảng 60 giây đầu sau upload.Bằng chứng & Rủi ro merge
Run 44247642348): jobUpload đúng file còn thiếu qua Trusted Publishingđãsuccess, nhưngverifythất bại ởPyPI / Python 3.9 / ubuntu-latest(thiếu Python 3.9 trên Ubuntu 26.04) vàPyPI / Python 3.11 / {ubuntu,windows}-latest(CDN chưa kịp đồng bộ trong 50 giây đầu).uv run --locked --group ci python -m unittest tests/test_release_workflows.py tests/test_smoke_index.py tests/test_ci_scope.py -vđạt 47/47 test (exit0);git diff --checkexit0.verify; không sửa code packagemyfap/, không mở thêm quyền chopublish/releasevà dễ hoàn tác.