-
Notifications
You must be signed in to change notification settings - Fork 60
Fix pipelines and tests #1415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bmehta001
wants to merge
42
commits into
microsoft:main
Choose a base branch
from
bmehta001:bhamehta/ci-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix pipelines and tests #1415
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
cf562a7
Modernize GitHub Actions workflows and fix CI issues
bmehta001 0cb07fc
Fix iOS CI: use simulator UUID for unambiguous xcodebuild destination
bmehta001 12a0d09
Fix iOS HTTP client crashes and test flakiness
bmehta001 90958a7
Fix data race in TransmissionPolicyManager and memory leak in WorkerT…
bmehta001 1d3c37f
Fix static-destruction-order crash in Logger destructor
bmehta001 a014233
Fix Android build: correct __ANDROID__ macro and suppress warnings
bmehta001 c08dd6e
Fix flaky tests: use 127.0.0.1 and relax CI timing tolerances
bmehta001 0d5637e
Fix WorkerThread: only clean up queues after successful join
bmehta001 e28c84e
Make m_runningLatency atomic to eliminate data races
bmehta001 48b0107
Revert m_runningLatency move into LOCKGUARD (now atomic, lock unneces…
bmehta001 cc259a3
Restore original m_runningLatency position to match main
bmehta001 c64663d
Fix MSVC build: use .load() for atomic in variadic LOG_TRACE calls
bmehta001 d8674bb
Fix compiler warnings: split GCC/Clang flags and add -fno-finite-math…
bmehta001 c129c88
Fix flaky functional tests: increase timeouts for iOS simulator
bmehta001 7c89cf6
Fix MultipleLogManagersTests: atomic counter and relaxed timeouts
bmehta001 c57e7d6
Increase upload timeout in DebugEventListener test for slow CI
bmehta001 1872937
Skip network-dependent test section on iOS simulator
bmehta001 e85c822
Revert HttpClientManager, HttpResponseDecoder, WorkerThread to main
bmehta001 43eeaec
Restore to known-good state (7c89cf6c)
bmehta001 2e22dcb
Simplify Apple HTTP: keep session alive across SDK reinitializations
bmehta001 8d894fe
Fix stale comment in HttpClient_Apple destructor
bmehta001 2d72372
Fix iOS simulator test flakiness: clean SQLite journals, increase ret…
bmehta001 6005eee
Widen PalTests timing tolerances for iOS simulator CI
bmehta001 f2e5d17
Fix APITest CleanStorage to remove SQLite journal files
bmehta001 9d16a44
Fix AISendTests CleanStorage to remove SQLite journal files
bmehta001 3a37981
Fix APITest: separate DB for DebugEventListener Phase 2, fix BadNetwo…
bmehta001 4476082
Fix flaky DebugEventListener test: add delay before phase2 DB setup
bmehta001 db1ee62
Fix DebugEventListener: use unique phase2 DB paths instead of sleep
bmehta001 b78c988
Fix multi-batch upload flakiness in BasicFuncTests
bmehta001 666c546
Fix cross-test config contamination and tighten timing tolerances
bmehta001 3907354
Set faster retry backoff for localhost tests
bmehta001 710a531
Remove explicit production upload from DebugEventListener Phase 2
bmehta001 79342fe
Make m_scheduledUploadTime atomic for explicit thread safety
bmehta001 c049bc2
Add 30-minute timeout to iOS CI to prevent deadlock hangs
bmehta001 21c442d
Merge branch 'main' into bhamehta/ci-fixes
ThomsonTan e9d3548
Merge branch 'main' into bhamehta/ci-fixes
ThomsonTan 9dccedc
Merge branch 'main' into bhamehta/ci-fixes
bmehta001 0248533
Scope cancel-in-progress to PR events only
bmehta001 b6d247a
Add comment explaining unlocked atomic stores in uploadAsync
bmehta001 651583d
Remove global -Wno-reorder, scope to Sanitizer.cpp only
bmehta001 c917965
Log pending task counts before shutdown join/detach
bmehta001 c17d38d
Fix torn read on m_requests in CancelAllRequests
bmehta001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,23 @@ set -e | |
|
|
||
| ./build-ios.sh ${SKU} | ||
|
|
||
| # dyld_info /Users/runner/work/cpp_client_telemetry/cpp_client_telemetry/out/lib/libmat.a | ||
|
|
||
| cd tests/unittests | ||
|
|
||
| xcrun simctl list devices available | ||
| echo 'End of xcrun simctl list devices available' | ||
|
|
||
| xcodebuild test -scheme iOSUnitTests -destination "platform=iOS Simulator,name=$SIMULATOR" | ||
| # Resolve simulator UUID to avoid ambiguous destination matching. | ||
| # Grab the last (newest OS) available device matching the requested name. | ||
| SIM_ID=$(xcrun simctl list devices available | grep "$SIMULATOR" | grep -oE '[A-F0-9-]{36}' | tail -1) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we resolve the simulator from
|
||
|
|
||
| if [ -z "$SIM_ID" ]; then | ||
| echo "ERROR: No available simulator found for '$SIMULATOR'" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Using simulator: $SIMULATOR (id=$SIM_ID)" | ||
|
|
||
| xcodebuild test -scheme iOSUnitTests -destination "id=$SIM_ID" | ||
|
|
||
| cd ../functests | ||
| xcodebuild test -scheme iOSFuncTests -destination "platform=iOS Simulator,name=$SIMULATOR" | ||
| xcodebuild test -scheme iOSFuncTests -destination "id=$SIM_ID" | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The runner update from
macos-13tomacos-14makes sense, but this also raises the CI deployment target fromIOS_DEPLOYMENT_TARGET=13.0to14.0. Is that intentional?The current
macos-14log shows the job is using Xcode 15.4, which still supports lower iOS deployment targets, andREADME.mdstill documents iOS 12+ as supported. Since runner OS and deployment target are independent, I think we should keep this leg onmacos-14but continue exportingIOS_DEPLOYMENT_TARGET=13.0unless we are intentionally dropping that lower-iOS coverage