fix(cloud-profiler): re-enable tests - #8828
Merged
Merged
Conversation
aabmass
force-pushed
the
push-stsosypynvny
branch
2 times, most recently
from
July 7, 2026 18:45
f5ade47 to
d5ced77
Compare
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the package.json file in handwritten/cloud-profiler to enable unit and system tests using mocha and c8 instead of skipping them. Feedback is provided to wrap the glob patterns in single quotes to ensure cross-platform compatibility, particularly on Windows where shell glob expansion behaves differently.
aabmass
force-pushed
the
push-stsosypynvny
branch
4 times, most recently
from
July 7, 2026 20:44
9341bad to
d2a0217
Compare
aabmass
force-pushed
the
push-stsosypynvny
branch
2 times, most recently
from
July 7, 2026 21:42
16321fe to
c530845
Compare
aabmass
marked this pull request as draft
July 7, 2026 21:44
aabmass
force-pushed
the
push-stsosypynvny
branch
3 times, most recently
from
July 7, 2026 23:24
955d2d6 to
ec2b64a
Compare
aabmass
commented
Jul 7, 2026
|
|
||
| # Our CI uses Git Bash on Windows to execute this script, which returns "msys" for OSTYPE. | ||
| if [[ "$OSTYPE" == "msys" ]]; then | ||
| # Our CI uses Git Bash on Windows to execute this script, which returns "msys" or "cygwin" for OSTYPE. |
Contributor
Author
There was a problem hiding this comment.
Turned out $OSTYPE is set to cygwin on the Windows GHA runners, which bypassed the original msys check. Adding cygwin and the $OS fallback makes sure we skip Windows-exempt tests correctly on both GHA and local setups.
aabmass
marked this pull request as ready for review
July 8, 2026 02:35
Restores the `test` and `system-test` scripts that were previously disabled in googleapis/cloud-profiler-nodejs#1002.
psx95
approved these changes
Jul 8, 2026
aabmass
force-pushed
the
push-stsosypynvny
branch
from
July 8, 2026 15:20
d09e658 to
84a96ab
Compare
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.
Restores the
test(unit test) script that was previously disabled in googleapis/cloud-profiler-nodejs#1002.Note: GCE system tests (
system-test) remain disabled for now as they require a GCE project environment to run.Note: Native module compilation (via
node-gyp) fails on GitHub Actions Windows runners due to runner-specific environment issues. Consequently,handwritten/cloud-profiler/has been added to the Windows test exemption list inci/run_conditional_tests.sh.