-
Notifications
You must be signed in to change notification settings - Fork 40
chore: Parallelize CI builds to reduce wall clock time #95
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5e05c6c
chore: Parallelize CI builds to reduce wall clock time
devin-ai-integration[bot] dd2000d
fix: Use shared contract-tests action for authenticated test harness …
devin-ai-integration[bot] bfd193c
fix: Disable persistence tests flag for SSE contract tests
devin-ai-integration[bot] 0c36036
ci: Re-trigger CI to work around transient GitHub API failure in cont…
devin-ai-integration[bot] 8e990e4
fix: Pin contract-tests action to commit SHA per Semgrep recommendation
devin-ai-integration[bot] b6e0f39
debug: Add inline downloader script with debugging for contract test …
devin-ai-integration[bot] 55c9f96
fix: Use inline contract test downloader with authenticated API calls
devin-ai-integration[bot] 6f02a53
fix: Switch back to shared gh-actions/contract-tests action
devin-ai-integration[bot] b7426ee
fix: Add branch: main for sse-contract-tests downloader resolution
devin-ai-integration[bot] ede23af
fix: Disable enable_persistence_tests for sse-contract-tests
devin-ai-integration[bot] 8155ae5
refactor: Remove default values from contract-tests action
devin-ai-integration[bot] b2e2d4b
fix: Re-add enable_persistence_tests: false (not a default)
devin-ai-integration[bot] 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: Build & Test iOS | ||
| description: 'Build for iOS device and run tests on iOS Simulator.' | ||
| inputs: | ||
| ios-sim: | ||
| description: 'iOS Simulator to use for testing' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| # Workaround for intermittent macos-15 runner issue where simulator | ||
| # runtimes aren't loaded. Listing devices forces the simulator service | ||
| # to initialize. See https://github.com/actions/runner-images/issues/12948 | ||
| - name: Prepare iOS Simulator runtime | ||
| shell: bash | ||
| run: xcrun simctl list devices available | ||
|
|
||
| - name: Build Tests for iOS device | ||
| shell: bash | ||
| run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk iphoneos CODE_SIGN_IDENTITY= | xcpretty | ||
|
|
||
| - name: Build & Test on iOS Simulator | ||
| shell: bash | ||
| run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk iphonesimulator -destination '${{ inputs.ios-sim }}' CODE_SIGN_IDENTITY= | xcpretty |
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Build & Test macOS | ||
| description: 'Build and test for macOS.' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Build & Test on macOS | ||
| shell: bash | ||
| run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk macosx -destination 'platform=macOS' | xcpretty | ||
|
|
||
| - name: Build for ARM64 macOS | ||
| shell: bash | ||
| run: xcodebuild build -scheme 'LDSwiftEventSource' -arch arm64e -sdk macosx | xcpretty |
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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Build & Test tvOS | ||
| description: 'Build for tvOS device and run tests on tvOS Simulator.' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| # Workaround for intermittent macos-15 runner issue where simulator | ||
| # runtimes aren't loaded. Listing devices forces the simulator service | ||
| # to initialize. See https://github.com/actions/runner-images/issues/12948 | ||
| - name: Prepare tvOS Simulator runtime | ||
| shell: bash | ||
| run: xcrun simctl list devices available | ||
|
|
||
| - name: Build Tests for tvOS device | ||
| shell: bash | ||
| run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk appletvos CODE_SIGN_IDENTITY= | xcpretty | ||
|
|
||
| - name: Build & Test on tvOS Simulator | ||
| shell: bash | ||
| run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty |
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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Build watchOS | ||
| description: 'Build for watchOS device and simulator.' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| # Workaround for intermittent macos-15 runner issue where simulator | ||
| # runtimes aren't loaded. Listing devices forces the simulator service | ||
| # to initialize. See https://github.com/actions/runner-images/issues/12948 | ||
| - name: Prepare watchOS Simulator runtime | ||
| shell: bash | ||
| run: xcrun simctl list devices available | ||
|
|
||
| - name: Build for watchOS simulator | ||
| shell: bash | ||
| run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchsimulator | xcpretty | ||
|
|
||
| - name: Build for watchOS device | ||
| shell: bash | ||
| run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchos | xcpretty |
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Contract Tests | ||
| description: 'Build and run SDK contract tests.' | ||
| inputs: | ||
| token: | ||
| description: 'GH token used to download SDK test harness.' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Build contract test service | ||
| shell: bash | ||
| run: make build-contract-tests | ||
|
|
||
| - name: Start contract test service | ||
| shell: bash | ||
| run: make start-contract-test-service-bg | ||
|
|
||
| - name: Run contract tests | ||
| uses: launchdarkly/gh-actions/actions/contract-tests@main | ||
|
kinyoklion marked this conversation as resolved.
|
||
| with: | ||
| repo: sse-contract-tests | ||
| branch: main | ||
| version: v2 | ||
| token: ${{ inputs.token }} | ||
| test_service_port: '8000' | ||
| debug_logging: 'true' | ||
| enable_persistence_tests: 'false' | ||
| extra_params: "-skip 'basic parsing/large message in one chunk' -skip 'basic parsing/large message in two chunks'" | ||
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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Lint | ||
| description: 'Run podspec and swiftlint checks.' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install swiftlint | ||
| shell: bash | ||
| run: brew install swiftlint | ||
|
|
||
| - name: Install cocoapods | ||
| shell: bash | ||
| run: gem install cocoapods | ||
|
|
||
| - name: Lint the podspec | ||
| shell: bash | ||
| # --quick skips building since dedicated build jobs already compile all platforms | ||
| run: pod lib lint LDSwiftEventSource.podspec --allow-warnings --quick | ||
|
|
||
| - name: Run swiftlint | ||
| shell: bash | ||
| run: swiftlint lint |
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: Test SwiftPM | ||
| description: 'Build and test using Swift Package Manager.' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Build & Test with SwiftPM | ||
| shell: bash | ||
| run: swift test -v 2>&1 | xcpretty |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.