Previously Successful Build Suddenly Failing #2937
Replies: 2 comments 5 replies
-
Hello @danielccdk, |
Beta Was this translation helpful? Give feedback.
5 replies
-
I'll be closing this issue for now, If you have any more concerns or can still reproduce this issue, please feel free to reply back or start a new conversation in the in-app chat. Happy Building! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
This is our current codemagic.yaml:
workflows: integration_test_workflow: max_build_duration: 120 environment: flutter: "3.24.3" xcode: 16.2 groups: - bugsnag - database - okta - carfax triggering: events: - pull_request branch_patterns: - pattern: 'dev' include: true source: false scripts: - name: Integration Tests script: | # This command will will shutdown the existing simulators to save on resources. flutter doctor -v xcrun simctl shutdown all # Integration tests on iPhone (iOS 18.2) flutter emulators --launch apple_ios_simulator sleep 20 flutter devices xcrun simctl list devices --j BOOTED_DEVICE_UDID=$(xcrun simctl list devices --json | jq -r '.devices | .[] | .[] | select(.state == "Booted") | .udid') flutter -d $BOOTED_DEVICE_UDID test integration_test/test_master.dart \ --dart-define=isTesting=true \ --dart-define=BUGSNAG_API_KEY=$BUGSNAG_API_KEY \ --dart-define=CARFAX_OAUTH_CLIENT_ID=$CARFAX_OAUTH_CLIENT_ID \ --dart-define=OKTA_ISSUER=$OKTA_ISSUER \ --dart-define=OKTA_CLIENT_ID=$OKTA_CLIENT_ID \ --dart-define=OKTA_REDIRECT_URI=$OKTA_REDIRECT_URI
We've had to change to this because out of nowhere on this past Friday, 1/17, the build started failing out of nowhere.
This is the codemagic.yaml for when that started to occur (it had been working for months up until then):
workflows: integration_test_workflow: environment: flutter: "3.24.3" groups: - bugsnag - database - okta - carfax triggering: events: - pull_request branch_patterns: - pattern: 'dev' include: true source: false scripts: - name: Integration Tests script: | flutter emulators --launch apple_ios_simulator flutter -d iPhone test integration_test/test_master.dart \ --dart-define=isTesting=true \ --dart-define=BUGSNAG_API_KEY=$BUGSNAG_API_KEY \ --dart-define=CARFAX_OAUTH_CLIENT_ID=$CARFAX_OAUTH_CLIENT_ID \ --dart-define=OKTA_ISSUER=$OKTA_ISSUER \ --dart-define=OKTA_CLIENT_ID=$OKTA_CLIENT_ID \ --dart-define=OKTA_REDIRECT_URI=$OKTA_REDIRECT_URI
We were facing timeout errors out of nowhere and it was suddenly unable to find a device to test on.
Build is triggered by push to feature branch that points to dev.
Expected results
Build to run/pass successfully. This has been the norm until Friday 1/17 despite NO relevant codemagic changes.
Actual results
Below is the current error we are seeing. Nothing has changed from a code perspective outside of trying to change things in codemagic.yaml to achieve a successful build.
We have also noticed that it now takes a long time for the simulator/emulator to fire up. Any input on this?
11:58 +0: loading /Users/builder/clone/integration_test/test_master.dart 11:59 +0: loading /Users/builder/clone/integration_test/test_master.dart 12:00 +0: loading /Users/builder/clone/integration_test/test_master.dart 12:00 +0 -1: loading /Users/builder/clone/integration_test/test_master.dart [E] TimeoutException after 0:12:00.000000: Test timed out after 12 minutes. package:test_api/src/backend/invoker.dart 338:28 Invoker._handleError.<fn> dart:async/zone.dart 1391:47 _rootRun dart:async/zone.dart 1301:19 _CustomZone.run package:test_api/src/backend/invoker.dart 336:10 Invoker._handleError package:test_api/src/backend/invoker.dart 291:9 Invoker.heartbeat.<fn>.<fn> dart:async/zone.dart 1399:13 _rootRun dart:async/zone.dart 1301:19 _CustomZone.run package:test_api/src/backend/invoker.dart 290:38 Invoker.heartbeat.<fn> dart:async-patch/timer_patch.dart 18:15 Timer._createTimer.<fn> dart:isolate-patch/timer_impl.dart 398:19 _Timer._runTimers dart:isolate-patch/timer_impl.dart 429:5 _Timer._handleMessage dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
Build id (optional)
678f842617e6cec0c2b3e41e
Beta Was this translation helpful? Give feedback.
All reactions