Open christian26A opened 7 months ago
I'm not sure that this was caused by the TS version change since 1.9.2 was published before that went in. The callstack above also isn't very helpful for determining why the semicolon is being treated as a syntax error.
@jeremymeng can you take a look?
My AppcenterTest task pipelines started to fail for no reason. I reported the issue to AppCenter support, they found out that it was caused by the dependency called @azure/core-client in appcenter-cli, it seems to use some syntax that the code checking tool can't recognize. As you can see from the latest update 4 days ago, the version of typescript changed. Then I checked that the file serilizer.js changed the file content mentioned in the error log. version 1.9.0: @azure/core-client - npm (npmjs.com) version 1.9.2: @azure/core-client - npm (npmjs.com) The content defining modelMappers differs between these two files, which is why the JavaScript code checker fails to recognize it.
here are the actual logs on my pipeline;
2024-04-15T17:14:41.8691590Z ##[section]Starting: AppCenterTest 2024-04-15T17:14:41.8700600Z ============================================================================== 2024-04-15T17:14:41.8700720Z Task : App Center test 2024-04-15T17:14:41.8700800Z Description : Test app packages with Visual Studio App Center 2024-04-15T17:14:41.8700880Z Version : 1.232.0 2024-04-15T17:14:41.8700930Z Author : Microsoft Corporation 2024-04-15T17:14:41.8701000Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/app-center-test 2024-04-15T17:14:41.8701110Z ============================================================================== 2024-04-15T17:14:43.6181140Z [command]/usr/local/bin/appcenter test prepare uitest --artifacts-dir /Users/runner/work/1/a/AppCenterTest --app-path /Users/runner/work/1/s/apps/InforMobilePublicSectorTouch.ipa --build-dir /Users/runner/work/1/b/Release --uitest-tools-dir apps/Xamarin.UITest.3.2.9/tools --include-category CDRCaseSet1 --quiet 2024-04-15T17:14:46.3489000Z /usr/local/lib/node_modules/appcenter-cli/node_modules/@azure/core-client/dist/commonjs/serializer.js:11 2024-04-15T17:14:46.3547850Z modelMappers; 2024-04-15T17:14:46.3555370Z ^ 2024-04-15T17:14:46.3555840Z 2024-04-15T17:14:46.3556440Z SyntaxError: Unexpected token ; 2024-04-15T17:14:46.3556990Z at new Script (vm.js:79:7) 2024-04-15T17:14:46.3598880Z at createScript (vm.js:251:10) 2024-04-15T17:14:46.3601740Z at Object.runInThisContext (vm.js:303:10) 2024-04-15T17:14:46.3631530Z at Module._compile (internal/modules/cjs/loader.js:657:28) 2024-04-15T17:14:46.3640850Z at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) 2024-04-15T17:14:46.3642160Z at Module.load (internal/modules/cjs/loader.js:599:32) 2024-04-15T17:14:46.3663640Z at tryModuleLoad (internal/modules/cjs/loader.js:538:12) 2024-04-15T17:14:46.3664370Z at Function.Module._load (internal/modules/cjs/loader.js:530:3) 2024-04-15T17:14:46.3665260Z at Module.require (internal/modules/cjs/loader.js:637:17) 2024-04-15T17:14:46.3668190Z at require (internal/modules/cjs/helpers.js:22:18) 2024-04-15T17:14:46.3726130Z ##[error]Error: The process '/usr/local/bin/appcenter' failed with exit code 1 2024-04-15T17:14:46.3755290Z ##[section]Finishing: AppCenterTest