isar-community / isar

Extremely fast, easy to use, and fully async NoSQL database for Flutter
https://isar-community.dev
Apache License 2.0
151 stars 15 forks source link

Integration Test - Windows #68

Open vicenterusso opened 6 months ago

vicenterusso commented 6 months ago

Help needed to make it work

Github Actions

  integration_test_windows:
    name: Integration Test Windows
    runs-on: windows-latest
    # if: ${{ false }}
    steps:
      - uses: actions/checkout@v4
      - uses: subosito/flutter-action@v2
        with:
          flutter-version: ${{ vars.FLUTTER_VERSION_V4 }}
      - name: Prepare Build
        uses: ./.github/actions/prepare-build
      - name: Build Isar Core
        run: |
          bash tool/build_windows.sh x64
          mv isar_windows_x64.dll packages/isar_flutter_libs/windows/libisar.dll
      - name: Prepare Tests
        run: sh tool/prepare_tests.sh
      - name: Cache Building
        run: |
          flutter config --enable-windows-desktop
          flutter build windows -v -t lib/isar_test.dart
        working-directory: packages/isar_test
      - name: Run Flutter Driver tests
        run: |
          flutter config --enable-windows-desktop
          flutter test -v -d windows integration_test.dart --dart-define STRESS=true
        working-directory: packages/isar_test

Build log

Run flutter config --enable-windows-desktop
  flutter config --enable-windows-desktop
  flutter build windows -v -t lib/isar_test.dart
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    FLUTTER_ROOT: C:\hostedtoolcache\windows\flutter\stable-3.13.[2](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:2)-x64
    PUB_CACHE: C:\Users\runneradmin\AppData\Local\Pub\Cache
    CARGO_HOME: C:\Users\runneradmin/.cargo
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
    PATH: C:\hostedtoolcache\windows\strawberry-perl\5.[3](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:3)2.1\x64\perl\site\bin;C:\hostedtoolcache\windows\strawberry-perl\5.32.1\x6[4](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:4)\perl\bin;C:\hostedtoolcache\windows\strawberry-perl\5.32.1\x64\c\bin;C:\Users\runneradmin\AppData\Local\Pub\Cache/bin;C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64/bin/cache/dart-sdk/bin;C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64/bin;C:\Program Files\MongoDB\Server\[5](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:5).0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x8[6](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:6))\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\2.15.5\x64;C:\cabal\bin;C:\\ghcup\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.3.3\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.9\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.6\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin;C:\Program Files\ImageMagick-[7](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:7).1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\docker-compose;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x[8](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:8)6)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.7\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps
    PERL5LIB: D:\a\isar\isar\local\lib\perl5;D:\a\isar\isar\local\lib\perl5\MSWin32-x64-multi-thread;D:\a\_actions\shogo82148\actions-setup-perl\v1\scripts\lib
    LIBCLANG_PATH: C:\Program Files\LLVM\bin\
    OPENSSL_SRC_PERL: C:/Strawberry/perl/bin/perl
Setting "enable-windows-desktop" value to "true".

You may need to restart any open editors for them to read new settings.
[  +46 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +41 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +45 ms] Skipping pub get: version match.
[  +78 ms] Found plugin path_provider at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider-2.1.3\
[   +5 ms] Found plugin path_provider_android at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_android-2.2.3\
[   +2 ms] Found plugin path_provider_foundation at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_foundation-2.3.2\
[   +3 ms] Found plugin path_provider_linux at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_linux-2.2.1\
[   +2 ms] Found plugin path_provider_windows at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.2.1\
[  +38 ms] Found plugin integration_test at C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\packages\integration_test\
[   +2 ms] Found plugin isar_flutter_libs at D:\a\isar\isar\packages\isar_flutter_libs\
[  +50 ms] Found plugin path_provider at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider-2.1.3\
[        ] Found plugin path_provider_android at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_android-2.2.3\
[        ] Found plugin path_provider_foundation at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_foundation-2.3.2\
[        ] Found plugin path_provider_linux at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_linux-2.2.1\
[   +1 ms] Found plugin path_provider_windows at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.2.1\
[  +27 ms] Found plugin integration_test at C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\packages\integration_test\
[   +1 ms] Found plugin isar_flutter_libs at D:\a\isar\isar\packages\isar_flutter_libs\
[  +31 ms] Found plugin path_provider at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider-2.1.3\
[        ] Found plugin path_provider_android at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_android-2.2.3\
[        ] Found plugin path_provider_foundation at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_foundation-2.3.2\
[        ] Found plugin path_provider_linux at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_linux-2.2.1\
[        ] Found plugin path_provider_windows at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.2.1\
[  +17 ms] Found plugin integration_test at C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\packages\integration_test\
[   +1 ms] Found plugin isar_flutter_libs at D:\a\isar\isar\packages\isar_flutter_libs\
[  +64 ms] Generating D:\a\isar\isar\packages\isar_test\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +42 ms] windows/runner/Runner.rc does not use Flutter version information, updating.
[   +[9](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:9) ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[+1607 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[        ] [
             {
               "instanceId": "734d050a",
               "installDate": "2024-04-21T21:41:22Z",
               "installationName": "VisualStudio/17.9.6+34728.123",
               "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
               "installationVersion": "17.9.34728.123",
               "productId": "Microsoft.VisualStudio.Product.Enterprise",
               "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.exe",
               "state": 4294967295,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Enterprise 2022",
               "description": "Scalable, end-to-end solution for teams of any size",
               "channelId": "VisualStudio.17.Release",
               "channelUri": "https://aka.ms/vs/17/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "installedChannelId": "VisualStudio.17.Release",
               "installedChannelUri": "https://aka.ms/vs/17/release/channel",
               "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.9#17.9.6",
               "resolvedInstallationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
               "updateDate": "2024-04-21T21:41:22.4856757Z",
               "catalog": {
                 "buildBranch": "d17.9",
                 "buildVersion": "17.9.34728.123",
                 "id": "VisualStudio/17.9.6+34728.123",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "17.9.6",
                 "productLine": "Dev17",
                 "productLineVersion": "2022",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "6",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productSemanticVersion": "17.9.6+34728.123",
                 "requiredEngineVersion": "3.9.2180.11832"
               },
               "properties": {
                 "campaignId": "",
                 "channelManifestId": "VisualStudio.17.Release/17.9.6+34728.123",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
               }
             }
           ]
[   +3 ms] Building Windows application...
[   +6 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S D:\a\isar\isar\packages\isar_test\windows -B build\windows -G Visual Studio 17 2022
[+6878 ms] -- The CXX compiler identification is MSVC 19.38.33135.0
[ +371 ms] -- Detecting CXX compiler ABI info
[+1772 ms] -- Detecting CXX compiler ABI info - done
[   +2 ms] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.38.33130/bin/HostX64/x64/cl.exe - skipped
[        ] -- Detecting CXX compile features
[   +1 ms] -- Detecting CXX compile features - done
[   +7 ms] -- Configuring done (6.0s)
[  +48 ms] -- Generating done (0.0s)
[   +3 ms] -- Build files have been written to: D:/a/isar/isar/packages/isar_test/build/windows
[  +47 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Release --target INSTALL --verbose
[  +52 ms] Change Dir: 'D:/a/isar/isar/packages/isar_test/build/windows'
[        ] Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/amd64/MSBuild.exe" INSTALL.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
[  +52 ms] MSBuild version 17.9.8+b34f75857 for .NET Framework
[  +34 ms] Build started 5/2/2024 6:32:28 PM.
[ +184 ms] Project "D:\a\isar\isar\packages\isar_test\build\windows\INSTALL.vcxproj" on node 1 (default targets).
[        ] Project "D:\a\isar\isar\packages\isar_test\build\windows\INSTALL.vcxproj" (1) is building "D:\a\isar\isar\packages\isar_test\build\windows\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
[        ] PrepareForBuild:
[        ]   Creating directory "x64\Release\ZERO_CHECK\".
[   +4 ms]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[        ]   Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
[   +2 ms] InitializeBuildStatus:
[        ]   Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ]   Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[  +81 ms] CustomBuild:
[        ]   1>Checking Build System
[  +56 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
[   +1 ms] Done Building Project "D:\a\isar\isar\packages\isar_test\build\windows\ZERO_CHECK.vcxproj" (default targets).
[  +66 ms] Project "D:\a\isar\isar\packages\isar_test\build\windows\INSTALL.vcxproj" (1) is building "D:\a\isar\isar\packages\isar_test\build\windows\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
[        ] Project "D:\a\isar\isar\packages\isar_test\build\windows\ALL_BUILD.vcxproj" (3) is building "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) on node 1 (default targets).
[        ] Project "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) is building "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_assemble.vcxproj" (5) on node 1 (default targets).
[        ] PrepareForBuild:
[        ]   Creating directory "x64\Release\flutter_assemble\".
[   +1 ms]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[        ]   Creating directory "x64\Release\flutter_assemble\flutter_assemble.tlog\".
[   +1 ms] InitializeBuildStatus:
[        ]   Creating "x64\Release\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ]   Touching "x64\Release\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[        ] ComputeCustomBuildOutput:
[        ]   Creating directory "D:\a\isar\isar\packages\isar_test\windows\flutter\ephemeral\cpp_client_wrapper\".
[   +1 ms] CustomBuild:
[        ]   "The build of 'D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\7a8a8244c7c6c88a2b71182262b68785\flutter_assemble.rule' depends on 'D:\A\ISAR\ISAR\PACKAGES\ISAR_TEST\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL' which is produced by the build of 'D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\855b4729e9282b858941145c1cd258f6\flutter_windows.dll.rule'. The items cannot be built in parallel."
[  +28 ms]   Generating D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_windows.dll, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_export.h, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_windows.h, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_messenger.h, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_plugin_registrar.h, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/flutter_texture_registrar.h, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc, D:/a/isar/isar/packages/isar_test/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_
[ +663 ms]   [  +48 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ]   [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +76 ms]   [  +86 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms]   [   +2 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +17 ms]   [  +18 ms] Initializing file store
[  +14 ms]   [  +14 ms] Skipping target: gen_localizations
[  +12 ms]   [  +12 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: D:\a\isar\isar\packages\isar_test\.dart_tool\package_config_subset}
[   +3 ms]   [   +3 ms] unpack_windows: Starting due to {}
[ +143 ms]   [ +142 ms] unpack_windows: Complete
[+2348 ms]   [+2348 ms] Found plugin path_provider at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider-2.1.3\
[   +3 ms]   [   +4 ms] Found plugin path_provider_android at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_android-2.2.3\
[   +1 ms]   [   +2 ms] Found plugin path_provider_foundation at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_foundation-2.3.2\
[   +1 ms]   [   +2 ms] Found plugin path_provider_linux at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_linux-2.2.1\
[   +2 ms]   [   +2 ms] Found plugin path_provider_windows at C:\Users\runneradmin\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.2.1\
[  +30 ms]   [  +30 ms] Found plugin integration_test at C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\packages\integration_test\
[   +1 ms]   [   +2 ms] Found plugin isar_flutter_libs at D:\a\isar\isar\packages\isar_flutter_libs\
[  +24 ms]   [  +24 ms] gen_dart_plugin_registrant: Complete
[   +1 ms]   [   +1 ms] kernel_snapshot: Starting due to {}
[  +[10](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:10) ms]   [   +9 ms] C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root C:\hostedtoolcache\windows\flutter\stable-3.13.2-x64\bin\cache\artifacts\engine\common\flutter_patched_sdk_product/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=true --aot --tfa --target-os windows --packages D:\a\isar\isar\packages\isar_test\.dart_tool\package_config.json --output-dill D:\a\isar\isar\packages\isar_test\.dart_tool\flutter_build\0c077a733e0d809abfc6aabb32d2b6aa\app.dill --depfile D:\a\isar\isar\packages\isar_test\.dart_tool\flutter_build\0c077a733e0d809abfc6aabb32d2b6aa\kernel_snapshot.d --source file:///D:/a/isar/isar/packages/isar_test/.dart_tool/flutter_build/dart_plugin_registrant.dart --source package:flutter/src/dart_plugin_registrant.dart -Dflutter.dart_plugin_registrant=file:///D:/a/isar/isar/packages/isar_test/.dart_tool/flutter_build/dart_plugin_registrant.dart --verbosity=error package:isar_test/isar_test.dart
[+4503 ms]   [+4501 ms] package:isar_test/isar_test.dart: Error: No 'main' method found.
[        ]   [   +1 ms] Try adding a method named 'main' to your program.
[  +23 ms]   [  +24 ms] Persisting file store
[   +3 ms]   [   +3 ms] Done persisting file store
[   +2 ms]   [   +2 ms] Target kernel_snapshot failed: Exception
[        ]              #0      KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:256:7)
[        ]              <asynchronous suspension>
[        ]              #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:853:9)
[        ]              <asynchronous suspension>
[        ]              #2      Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
[        ]              <asynchronous suspension>
[        ]              #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
[        ]              <asynchronous suspension>
[        ]              #4      Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
[        ]              <asynchronous suspension>
[        ]              #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
[        ]              <asynchronous suspension>
[        ]              #6      Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
[        ]              <asynchronous suspension>
[        ]              #7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
[        ]              <asynchronous suspension>
[        ]              #8      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:620:16)
[        ]              <asynchronous suspension>
[        ]              #9      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:315:32)
[        ]              <asynchronous suspension>
[        ]              #10     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
[        ]              <asynchronous suspension>
[        ]              #[11](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:11)     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #12     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
[        ]              <asynchronous suspension>
[        ]              #13     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
[        ]              <asynchronous suspension>
[        ]              #14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #15     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
[        ]              <asynchronous suspension>
[        ]              #16     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
[        ]              <asynchronous suspension>
[        ]              #17     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #18     main (package:flutter_tools/executable.dart:90:3)
[        ]              <asynchronous suspension>
[   +4 ms]   [  +10 ms] "flutter assemble" took 7,270ms.
[   +2 ms]   [   +2 ms] 
[        ]              #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[        ]              #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:332:7)
[        ]              <asynchronous suspension>
[        ]              #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
[        ]              <asynchronous suspension>
[        ]              #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
[        ]              <asynchronous suspension>
[        ]              #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
[        ]              <asynchronous suspension>
[        ]              #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
[        ]              <asynchronous suspension>
[        ]              #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
[        ]              <asynchronous suspension>
[        ]              #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #10     main (package:flutter_tools/executable.dart:90:3)
[        ]              <asynchronous suspension>
[   +6 ms]   [  +10 ms] ensureAnalyticsSent: 0ms
[        ]   [        ] Running 0 shutdown hooks
[        ]   [        ] Shutdown hooks complete
[        ]   [        ] exiting with code 1
[  +36 ms] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\855b4729e9282b858941145c1cd258f6\flutter_windows.dll.rule;D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\7a8a8244c7c6c88a2b71182262b68785\flutter_assemble.rule;D:\a\isar\isar\packages\isar_test\windows\flutter\CMakeLists.txt' exited with code 1. [D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_assemble.vcxproj]
[   +1 ms] Done Building Project "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_assemble.vcxproj" (default targets) -- FAILED.
[        ] Done Building Project "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_wrapper_app.vcxproj" (default targets) -- FAILED.
[  +77 ms] Done Building Project "D:\a\isar\isar\packages\isar_test\build\windows\ALL_BUILD.vcxproj" (default targets) -- FAILED.
[        ] Done Building Project "D:\a\isar\isar\packages\isar_test\build\windows\INSTALL.vcxproj" (default targets) -- FAILED.
[   +3 ms] Build FAILED.
[        ] "D:\a\isar\isar\packages\isar_test\build\windows\INSTALL.vcxproj" (default target) (1) ->
[        ] "D:\a\isar\isar\packages\isar_test\build\windows\ALL_BUILD.vcxproj" (default target) (3) ->
[        ] "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_wrapper_app.vcxproj" (default target) (4) ->
[        ] "D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_assemble.vcxproj" (default target) (5) ->
[        ]   C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\855b4729e9282b858941145c1cd258f6\flutter_windows.dll.rule;D:\a\isar\isar\packages\isar_test\build\windows\CMakeFiles\7a8a8244c7c6c88a2b71182262b68785\flutter_assemble.rule;D:\a\isar\isar\packages\isar_test\windows\flutter\CMakeLists.txt' exited with code 1. [D:\a\isar\isar\packages\isar_test\build\windows\flutter\flutter_assemble.vcxproj]
[        ] (CustomBuild target) -> 
[        ]     0 Warning(s)
[        ]     1 Error(s)
[        ] Time Elapsed 00:00:08.47
[  +20 ms] Building Windows application... (completed in 17.8s)
[        ] "flutter windows" took 19,884ms.
[   +2 ms] Build process failed.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runBuild (package:flutter_tools/src/windows/build_windows.dart:220:5)
           <asynchronous suspension>
           #2      buildWindows (package:flutter_tools/src/windows/build_windows.dart:96:5)
           <asynchronous suspension>
           #3      BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:56:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:[12](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:12)97:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:212:[13](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:13))
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:[15](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:16)0:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:[19](https://github.com/vicenterusso/isar/actions/runs/8928574042/job/24524439329#step:7:20))
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:90:3)
           <asynchronous suspension>

[   +9 ms] ensureAnalyticsSent: 0ms
[        ] Running 0 shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
frederikstonge commented 6 months ago

So first error is : [+4501 ms] package:isar_test/isar_test.dart: Error: No 'main' method found.

Then later, we see this : Target kernel_snapshot failed: Exception

frederikstonge commented 6 months ago

Maybe try to switch runs-on: windows-2019 to runs-on: windows-latest

vicenterusso commented 6 months ago

Maybe try to switch runs-on: windows-2019 to runs-on: windows-latest

check the yaml, its already windows-latest