microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

[REGRESSION]: No attachment pushed to results #19815

Open ChrystianC opened 6 months ago

ChrystianC commented 6 months ago

New issue checklist

Task name

PublishTestResults@2

Breaking task version

No response

Last working task version

No response

Regression Description

Publishing with test report Junit since last week doesn't attach a test results. Request is empty. I use visual regression expect(page).toHaveScreenshot(); image

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20

Relevant log output

Example preview
https://devblogs.microsoft.com/devops/junit-attachments-support-for-publish-test-results/

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 
SUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

- script: 'yarn run test-e2e --reporter=junit'
    displayName: 'Yarn Test (E2E)'
    env:
      APP_DLL_DIR: '$(Build.BinariesDirectory)'
      COMMAND: '$(Agent.ToolsDirectory)/dotnet/dotnet TVMan.Client.dll'
      PLAYWRIGHT_JUNIT_OUTPUT_NAME: '$(Common.TestResultsDirectory)/e2e.xml'

  - task: PublishTestResults@2
    displayName: 'Publish Test Results (E2E)'
    condition: succeededOrFailed()
    inputs:
      searchFolder: '$(Common.TestResultsDirectory)'
      testResultsFiles: 'e2e.xml'
      testRunTitle: 'E2E'
sweco-nltbim commented 6 months ago

Following.. I also run into the same issue. One day it stopped adding the attachments and can't figure out why.

ashevchenkosps commented 1 week ago

I've updated Playwright to 1.46 from 1.29, and now I see published artifacts but have zero state in the azure attachments.

Added the same error on playwright: https://github.com/microsoft/playwright/issues/33415