dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
791 stars 211 forks source link

build_runner fails during GitHub Actions build #3764

Closed Fraa-124 closed 3 weeks ago

Fraa-124 commented 1 month ago

This issue is blocking our migration to Flutter 3.24.3. Our CI fails with only an exit code 143 and no additional details. But what does exit code 143 mean?

It compiles fine locally.

dev_dependencies:
  flutter_test:
    sdk: flutter
  integration_test:
    sdk: flutter
  build_runner: ^2.4.13
  drift_dev: 2.20.3
  flutter_lints: ^5.0.0
  json_serializable: 6.8.0
  sentry_dart_plugin: 2.1.0
  analyzer: ^6.7.0
name: Build deploy app
on:
  workflow_dispatch:

jobs:
  get-versions:
    uses: ./.github/workflows/versioning.yml

  integration-test:
    name: Build & push app to bucket
    needs: [get-versions]
    runs-on: ubuntu-latest
    permissions:
      contents: "write"
      id-token: "write"

    steps:
      - name: checkout
        uses: actions/checkout@v4
- name: 🐦 Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          channel: "stable"
          flutter-version: 3.24.3

With the verbose flag enabled, no errors are thrown either, only [INFO] and [FINE] logs are shown.

Run dart pub run build_runner build -d 
[INFO] Generating build script...
[INFO] Generating build script completed, took 478ms
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 5.7s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 3.1s
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Deleting 1 declared outputs which already existed on disk.
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO] Running build...
[INFO] Generating SDK summary...
[INFO] 2.7s elapsed, 0/16 actions completed.
[INFO] 5.3s elapsed, 0/16 actions completed.
[INFO] 6.5s elapsed, 0/16 actions completed.
[INFO] Generating SDK summary completed, took 6.5s
[INFO] 7.6s elapsed, 1/26 actions completed.
[INFO] 8.7s elapsed, 2/30 actions completed.
[INFO] 14.2s elapsed, 20/36 actions completed.
[INFO] 15.2s elapsed, 71/117 actions completed.
[INFO] 16.3s elapsed, 85/161 actions completed.
[INFO] 17.4s elapsed, 124/177 actions completed.
[INFO] 18.5s elapsed, 141/184 actions completed.
[INFO] 19.5s elapsed, 185/213 actions completed.
[INFO] 30.7s elapsed, 197/218 actions completed.
[INFO] 31.7s elapsed, 223/225 actions completed.
[INFO] 40.9s elapsed, 223/225 actions completed.
[INFO] 42.1s elapsed, 230/246 actions completed.
[INFO] 43.1s elapsed, 233/249 actions completed.
[INFO] 44.1s elapsed, 235/251 actions completed.
[INFO] 45.2s elapsed, 238/254 actions completed.
[INFO] 46.3s elapsed, 244/260 actions completed.
[INFO] 47.3s elapsed, 253/269 actions completed.
[INFO] 48.3s elapsed, 255/271 actions completed.
[INFO] 49.4s elapsed, 262/278 actions completed.
[INFO] 50.5s elapsed, 275/280 actions completed.
[INFO] 51.5s elapsed, 279/280 actions completed.
[INFO] 52.5s elapsed, 286/302 actions completed.
[INFO] 53.6s elapsed, 326/340 actions completed.
[INFO] 54.7s elapsed, 353/371 actions completed.
[INFO] 55.7s elapsed, 394/414 actions completed.
[INFO] 56.7s elapsed, 446/465 actions completed.
[INFO] 57.8s elapsed, 505/522 actions completed.
[INFO] 58.8s elapsed, 520/536 actions completed.
[INFO] 59.8s elapsed, 532/548 actions completed.
[INFO] 1m 0s elapsed, 534/550 actions completed.
[INFO] 1m 1s elapsed, 534/550 actions completed.
[INFO] 1m 3s elapsed, 534/550 actions completed.
[INFO] 1m 4s elapsed, 534/550 actions completed.
[INFO] 1m 5s elapsed, 534/550 actions completed.
[INFO] 1m 6s elapsed, 539/553 actions completed.
[INFO] 1m 7s elapsed, 550/566 actions completed.
[INFO] 1m 8s elapsed, 572/588 actions completed.
[INFO] 1m 9s elapsed, 612/628 actions completed.
[INFO] 1m 10s elapsed, 675/691 actions completed.
[INFO] 1m 11s elapsed, 708/710 actions completed.
[INFO] 1m 12s elapsed, 758/759 actions completed.
[INFO] 1m 13s elapsed, 780/781 actions completed.
[INFO] 1m 14s elapsed, 799/801 actions completed.
[INFO] 1m 15s elapsed, 814/815 actions completed.
[INFO] 1m 16s elapsed, 832/833 actions completed.
[INFO] 1m 17s elapsed, 847/848 actions completed.
[INFO] 1m 19s elapsed, 865/866 actions completed.
[INFO] 1m 20s elapsed, 874/875 actions completed.
[INFO] 1m 21s elapsed, 885/886 actions completed.
[INFO] 1m 22s elapsed, 905/906 actions completed.
[INFO] 1m 23s elapsed, 918/919 actions completed.
[INFO] 1m 24s elapsed, 931/932 actions completed.
[INFO] 1m 25s elapsed, 946/947 actions completed.
[INFO] 1m 26s elapsed, 958/959 actions completed.
[INFO] 1m 27s elapsed, 966/967 actions completed.
[INFO] 1m 28s elapsed, 972/973 actions completed.
[INFO] 1m 29s elapsed, 986/987 actions completed.
[INFO] 1m 30s elapsed, 1001/1002 actions completed.
[INFO] 1m 32s elapsed, 1017/1018 actions completed.
[INFO] 1m 33s elapsed, 1037/1038 actions completed.
[INFO] 1m 34s elapsed, 1052/1053 actions completed.
[INFO] 1m 35s elapsed, 1061/1062 actions completed.
[INFO] 1m 36s elapsed, 1066/1067 actions completed.
[INFO] 1m 37s elapsed, 1077/1078 actions completed.
[INFO] 1m 38s elapsed, 1093/1094 actions completed.
[INFO] 1m 39s elapsed, 1107/1109 actions completed.
[INFO] 1m 40s elapsed, 1119/1120 actions completed.
[INFO] 1m 41s elapsed, 1131/1132 actions completed.
[INFO] 1m 42s elapsed, 1144/1145 actions completed.
[INFO] 1m 43s elapsed, 1158/1159 actions completed.
[INFO] 1m 44s elapsed, 1162/1163 actions completed.
[INFO] 1m 45s elapsed, 1165/1166 actions completed.
[INFO] 1m 46s elapsed, 1171/1172 actions completed.
[INFO] 1m 48s elapsed, 1181/1182 actions completed.
[INFO] 1m 49s elapsed, 1191/1192 actions completed.
[INFO] 1m 50s elapsed, 1200/1201 actions completed.
[INFO] 1m 51s elapsed, 1208/1209 actions completed.
[INFO] 1m 52s elapsed, 1216/1217 actions completed.
[INFO] 1m 53s elapsed, 1226/1227 actions completed.
[INFO] 1m 55s elapsed, 1230/1231 actions completed.
[INFO] 1m 56s elapsed, 1235/1236 actions completed.
[INFO] 1m 57s elapsed, 1238/1239 actions completed.
[INFO] 1m 58s elapsed, 1243/1244 actions completed.
[INFO] 1m 59s elapsed, 1249/1250 actions completed.
[INFO] 2m 0s elapsed, 1257/1258 actions completed.
[INFO] 2m 1s elapsed, 1264/1265 actions completed.
[INFO] 2m 3s elapsed, 1271/1272 actions completed.
[INFO] 2m 4s elapsed, 1279/1280 actions completed.
[INFO] 2m 5s elapsed, 1284/1285 actions completed.
[INFO] 2m 6s elapsed, 1295/1297 actions completed.
[INFO] 2m 7s elapsed, 1303/1304 actions completed.
[INFO] 2m 8s elapsed, 1312/1313 actions completed.
[INFO] 2m 9s elapsed, 1317/1318 actions completed.
[INFO] 2m 10s elapsed, 1320/1321 actions completed.
[INFO] 2m 11s elapsed, 1322/1323 actions completed.
[INFO] 2m 13s elapsed, 1323/1324 actions completed.
[INFO] 2m 15s elapsed, 1324/1325 actions completed.
[INFO] 2m 16s elapsed, 1324/1326 actions completed.
[INFO] 2m 40s elapsed, 1325/1326 actions completed.
Warning:  No actions completed for 23.5s, waiting on:
  - drift_dev:not_shared on lib/db-sqlite/database.dart
[INFO] 2m 42s elapsed, 1326/1327 actions completed.
[INFO] 2m 44s elapsed, 1327/1328 actions completed.
[INFO] 2m 45s elapsed, 1328/1329 actions completed.
[INFO] 2m 47s elapsed, 1329/1330 actions completed.
[INFO] 2m 49s elapsed, 1330/1331 actions completed.
[INFO] 2m 50s elapsed, 1334/1335 actions completed.
[INFO] 2m 51s elapsed, 1341/1342 actions completed.
[INFO] 2m 57s elapsed, 1351/1352 actions completed.
[INFO] 2m 59s elapsed, 1398/1410 actions completed.
[INFO] 3m 1s elapsed, 1399/1414 actions completed.
[INFO] 3m 2s elapsed, 1436/1447 actions completed.
[INFO] 3m 3s elapsed, 1497/1511 actions completed.
[INFO] 3m 4s elapsed, 1549/1555 actions completed.
[INFO] 3m 5s elapsed, 1605/1620 actions completed.
[INFO] 3m 7s elapsed, 1629/1645 actions completed.
[INFO] 3m 9s elapsed, 1630/1645 actions completed.
[INFO] 3m 11s elapsed, 1646/1646 actions completed.
[INFO] 3m 13s elapsed, 1744/1760 actions completed.
[INFO] 3m 14s elapsed, 1774/1790 actions completed.
[INFO] 3m 15s elapsed, 1798/1813 actions completed.
[INFO] 3m 16s elapsed, 1817/1833 actions completed.
[INFO] 3m 17s elapsed, 1856/1870 actions completed.
[INFO] 3m 18s elapsed, 1879/1893 actions completed.
[INFO] 3m 19s elapsed, 1909/1924 actions completed.
[INFO] 3m 20s elapsed, 1941/1954 actions completed.
[INFO] 3m 21s elapsed, 2001/2014 actions completed.
[INFO] 3m 22s elapsed, 2028/2043 actions completed.
[INFO] 3m 23s elapsed, 2045/2060 actions completed.
[INFO] 3m 24s elapsed, 2047/2062 actions completed.
Error: Process completed with exit code 143.
jakemac53 commented 1 month ago

From some quick googling it looks like this means it received a SIGTERM signal from the outside (possibly, the container it is running in actually received this).

Did you try just restarting the job? It could have been a flake. If it is happening reliably it could be that the container is running out of memory, or timing out, something along those lines.

github-actions[bot] commented 3 weeks ago

Without additional information we're not able to resolve this issue. Feel free to add more info or respond to any questions above and we can reopen the case. Thanks for your contribution!