Stop cat from failing on missing permissions in ACI environment dump#7655
Merged
achamayou merged 1 commit intomicrosoft:mainfrom Feb 9, 2026
Merged
Stop cat from failing on missing permissions in ACI environment dump#7655achamayou merged 1 commit intomicrosoft:mainfrom
achamayou merged 1 commit intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CI workflow’s ACI environment dump to tolerate unreadable /proc/*/environ files while still failing the job when the expected Fabric_NodeIPOrFQDN variable is not found.
Changes:
- Wrap
cat /proc/*/environwith stderr suppression and|| trueso unreadable files don’t fail the pipeline. - Apply the same adjustment to both ACI SNP Milan and ACI SNP Genoa “Dump environment” steps.
achamayou
approved these changes
Feb 9, 2026
achamayou
approved these changes
Feb 9, 2026
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.
I got another instance of:
The problem being that cat barfs if it can't read a file.
So we can pass a
|| trueand wrap the cat in a subshell, it will output all the relevant bits and set the incorrect error code.If the Fabric_... doesn't exist then the grep will fail.
Here is an incredibly verbose vibe-demo of this working if you want to double check.