Ssoon
Azure DevOps - Azure Pipeline 만들기 (3) 본문
Microsoft Learn > Azure DevOps > Azure Pipelines > Create your first pipeline 를 참조하였습니다.
✅ 수동으로 다시 Run new 실행
- parallel jobs 설정을 수정 한 후 다시 Pipeline을 실행했지만 실패 합니다.
- GitHub Actions 파이프라인에서 Python을 다운로드하는 동안 발생한 경고와 오류를 확인합니다.
[error]Failed to download Python from the Github Actions python registry (https://github.com/actions/python-versions). Error: Error: Could not find Python matching spec 2.7 (x64) in the python-versions registry. Beware that only systems listed in the Github Actions python versions manifest (https://github.com/actions/python-versions/blob/main/versions-manifest.json) are fit for downloading python on-flight. Also, proxy is not supported.
- 이 오류는 GitHub Actions이 Python을 GitHub Actions Python 레지스트리에서 다운로드하지 못했다는 것을 나타냅니다. 구체적으로는 Python 2.7 (x64)에 대한 버전을 찾을 수 없다는 내용입니다. 또한, GitHub Actions Python 버전 매니페스트(https://github.com/actions/python-versions/blob/main/versions-manifest.json)에 명시된 시스템만이 Python을 온라인으로 다운로드할 수 있다고 경고하고 있습니다. 또한, 프록시(Proxy)를 지원하지 않음을 알려줍니다.
✅ Azure Devops 에서 Commit
- 해당 Pipelines 의 Edit를 클릭합니다.
- strategy 섹션의 Python 버전을 변경하고 저장합니다.
- 수정된 azure-pipelines.yml 로 다시 Pipeline 이 실행됩니다.
- 변경된 버전으로 Job이 성공된 것을 확인 할 수 있습니다.
✅ Github 에서 Commit
- Github 계정에서 fork 된 Repositories 에서 azure-pipelines.yml 클릭합니다.
- strategy 섹션의 Python 버전을 변경하고 "Commit changes" 선택합니다.
- Commit message를 입력하고 "Commit changes" 를 선택합니다.
- commit 후 해당 Pipeline이 실행되는 것을 확인 할 수 있습니다.
- Pipeline 실행 결과를 확인합니다.
- 실패한 Job 를 확인합니다.
##[error]Version spec 3.13 for architecture x64 did not match any version in Agent.ToolsDirectory.
- 오류]아키텍처 x64의 버전 사양 3.13이 Agent.ToolsDirectory의 어떤 버전과도 일치하지 않습니다.
-
- strategy 섹션의 Python 버전을 변경하고 "Commit changes" 선택합니다.
-
- Commit message를 입력하고 "Commit changes" 를 선택합니다.
- commit 후 해당 Pipeline이 실행되는 것을 확인 할 수 있습니다.
- 모든 Job들이 성공한 것을 확인할 수 있습니다.
- Warning 부분은 확인 필요 (?)
[warning]datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
- datetime.datetime.utcnow() 메서드가 더 이상 권장되지 않고 향후 버전에서 제거될 예정이며, 대신 timezone-aware한 객체를 사용하는 것이 권장된다는 내용입니다. 이러한 변경은 datetime 모듈에서 UTC 시간을 처리할 때 표준으로 채택되고 있습니다.
##[warning]Use setlocale(), getencoding() and getlocale() instead
- setlocale(), getencoding(), 및 getlocale() 메서드가 더 이상 권장되지 않고 향후 버전에서 제거될 예정이며, 대신 대체하는 방법으로 locale 모듈의 setlocale(), getdefaultlocale(), 및 getpreferredencoding() 메서드를 사용하라는 내용입니다. 이러한 변경은 Python의 표준 라이브러리 업데이트로 인해 발생한 것입니다.
'Azure' 카테고리의 다른 글
Azure DevOps - Azure Pipeline 만들기 (2) (2) | 2023.11.22 |
---|---|
Azure DevOps - Azure Pipeline 만들기 (1) (0) | 2023.11.22 |
Comments