chore: Fix noisy errors in Windows CI build logs#6840
Open
danskmt wants to merge 1 commit into
Open
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
PR Reviewer Guide 🔍
|
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.
Pull Request Submission Checklist
What does this PR do?
Fixes four categories of noisy error messages that appear in the
build windows amd64CI logs. None were breaking the build, but they were confusing and one masked a latent issue with the bash PATH setup.export: command not found— PowerShellOut-File -Encoding UTF8writes a UTF-8 BOM that breaks bashsource. Replaced with[System.IO.File]::AppendAllText()using BOM-free UTF-8 in all scripts that write tosnyk-env.sh.CreateProcess(NULL, python3 --version, ...) failed+pipe: Bad file descriptor— Root Makefile unconditionally runspython3 --versionvia$(shell ...), which fails on Windows (nopython3.exe). Moved the probe inside anifneq ($(GOHOSTOS), windows)guard.File not found - *.go—cliv2/Makefileuses Unixfindto populateSRCS, but Windows resolvesfindto its built-in text-search tool. Replaced with$(GOCMD) listwhich is cross-platform.Cache key bump — Bumped
windows-tools-cache-v4→v5to flush any cached BOM-prefixedsnyk-env.shfiles.Where should the reviewer start?
Makefile— python3 probe guard (smallest change)cliv2/Makefile—SRCSnow usesgo listinstead of Unixfindscripts/windows/install-*.ps1— BOM-free writing pattern.circleci/config.yml— BOM fix ininstall-go+ cache key bumpHow should this be manually tested?
The changes are CI-only. Validation:
build windows amd64job runWhat's the product update that needs to be communicated to CLI users?
None. Internal CI build cleanup with no user-facing changes.