unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

Unity Test Task failes due to missing unity-test.js file

Open Gennon opened this issue 5 years ago • 4 comments

I am trying out the new Unity Test Task that is available, but I get this error when running the task.

##[error]File not found: '/Volumes/Samsung_T5/AgentWork/_tasks/UnityTestTask_85e57e6f-cb59-4d1d-979f-dd830b51f2fa/1.0.0/unity-test.js'

We are running this on our own Mac that we set up as an agent.

When I browse the content of the folder I notice that there is only the .ts files there.

Both package.json and task.json are refering to unity-test.js.

I am not familiar with Azure DevOps tasks development, but should the TypeScript files be compiled to Javascript before they were released?

Gennon avatar Mar 31 '20 12:03 Gennon

Hi, thank you. I am looking into this.

FejZa avatar Mar 31 '20 12:03 FejZa

Hi, I just published an update to the extension. v2.7 addresses many issues and brings improvements for debugging. Could you check if your issue is resolved?

Also if you are using a custom agent, please make sure it has nodejs installed in the latest stable version.

FejZa avatar Apr 22 '20 09:04 FejZa

Hi, could you please check whether the just published update resolved this issue for you?

FejZa avatar Apr 22 '20 09:04 FejZa

Hi again. It starts at least this time. And it seems to run the tests, but something is happening and unity crashes somehow. Then the tests starts again on its own, and the same thing happens over and over. Had to manually cancel the job.


Refresh completed in 0.066201 seconds.
RefreshInfo: RefreshV2(NoUpdateAssetOptions)
RefreshProfiler: Total: 66.188ms
	InvokeBeforeRefreshCallbacks: 0.001ms
	ApplyChangesToAssetFolders: 0.065ms
	WriteModifiedImportersToTextMetaFiles: 0.000ms
	CleanLegacyArtifacts: 0.000ms
	Scan: 56.851ms
	OnSourceAssetsModified: 0.000ms
	UnregisterDeletedAssets: 0.000ms
	InitializeImportedAssetsSnapshot: 4.744ms
	GetAllGuidsForCategorization: 0.000ms
	CategorizeAssets: 0.000ms
	ImportAndPostprocessOutOfDateAssets: 0.000ms (0.000ms without children)
		ImportManagerImport: 0.000ms (0.000ms without children)
			ImportInProcess: 0.000ms
			ImportOutOfProcess: 0.000ms
			UpdateCategorizedAssets: 0.000ms
			RemoteAssetCacheGetArtifact: 0.000ms (0.000ms without children)
				RemoteAssetCacheResolve: 0.000ms
				RemoteAssetCacheDownloadFile: 0.000ms
		CompileScripts: 0.000ms
		PostProcessAllAssets: 0.000ms
		ReloadImportedAssets: 0.000ms
		VerifyAssetsAreUpToDateAndCorrect: 0.000ms
		EnsureUptoDateAssetsAreRegisteredWithGuidPM: 0.000ms
		InitializingProgressBar: 0.000ms
		PostProcessAllAssetNotificationsAddChangedAssets: 0.000ms
		OnDemandSchedulerStart: 0.000ms
		RestoreLoadedAssetsState: 0.000ms
	InvokeProjectHasChanged: 0.000ms
	UpdateImportedAssetsSnapshot: -0.000ms
	ReloadSourceAssets: 0.000ms
	UnloadImportedAssets: 0.000ms
	Hotreload: 0.019ms
	FixTempGuids: 0.004ms
	VerifyGuidPMRegistrations: 0.000ms
	GatherAllCurrentPrimaryArtifactRevisions: 0.640ms
	UnloadStreamsBegin: 0.016ms
	LoadedImportedAssetsSnapshotReleaseGCHandles: 0.856ms
	GetLoadedSourceAssetsSnapshot: 0.975ms
	PersistCurrentRevisions: 0.000ms
	UnloadStreamsEnd: 0.016ms
	Untracked: 2.002ms
Cleanup mono
debugger-agent: Unable to listen on 39
[usbmuxd] Stop listen thread
[usbmuxd] Error: 
[usbmuxd] Listen thread exiting
[Package Manager] Server::Kill -- Server was shutdown
Checking for leaked weakptr:
  Found no leaked weakptrs.
##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1587548022469,"processId":29038,"allocatedMemory":34139089,"memoryLabels":[{"Default":-1596},{"Thread":87},{"Manager":3328},{"GfxDevice":160},{"Physics":81},{"Serialization":40},{"String":15

I have a bash script that is running successfully to do the tests, these are the arguments I use:

./Unity -batchmode -logFile $(System.DefaultWorkingDirectory)/run.log -projectPath $(System.DefaultWorkingDirectory) -runTests -testResults $(System.DefaultWorkingDirectory)/playmode-results.xml -testPlatform playmode

Gennon avatar Apr 22 '20 09:04 Gennon