Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Rerunning a Playwright shard on a Pull Request in Github Actions results in a report that gets stuck in In Progress #137

Open
angelo-loria opened this issue Oct 22, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@angelo-loria
Copy link

angelo-loria commented Oct 22, 2024

When using the reporting dashboard with sharding in Github Actions, a re-run of a failed shard on a Pull Request results in a report that is stuck in In Progress.

To Reproduce
Steps to reproduce the behavior:

  1. Execute tests in Github Actions with sharding enabled
 jobs:
  playwright_test:
    name: Playwright Test 
    strategy:
      fail-fast: false
      matrix:
        shardIndex: [1, 2, 3, 4, 5]
        shardTotal: [5]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Yarn Install
        run: yarn install

      - name: Run Tests
        run: yarn test:ci --workers=2 --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
        env:
          # Access token and regional endpoint for Microsoft Playwright Testing
          PLAYWRIGHT_SERVICE_ACCESS_TOKEN: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_TOKEN }}
          PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
          PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }} // note that this makes no difference

  1. This is the result of our initial run:
    Image
  2. The initial run results in a working report dashboard:
    Image
  3. Rerun the failed jobs in Actions:
    Image
  4. After rerunning jobs, we have different results:
    Image
  5. The report gets stuck in In Progress and can't be accessed:
    Image

Setup information (please complete the following information):*

  • Azure Subscription Id: af4ec0b8-998c-4cf2-900b-5352b121dbf9
  • Workspace Name: Kaleidoscope
  • Playwright Version: 1.48.1
@angelo-loria angelo-loria changed the title [BUG]: Rerunning a single Playwright shard in Github Actions results in a report that gets stuck in In Progress [BUG]: Rerunning a Playwright shard in Github Actions results in a report that gets stuck in In Progress Oct 22, 2024
@angelo-loria angelo-loria changed the title [BUG]: Rerunning a Playwright shard in Github Actions results in a report that gets stuck in In Progress [BUG]: Rerunning a Playwright shard on a Pull Request in Github Actions results in a report that gets stuck in In Progress Oct 22, 2024
@kj0171
Copy link

kj0171 commented Oct 24, 2024

Sorry for the inconvenience caused.
For this particular run, for the 1st try can you please check whether the reporting was configured properly because we at the server end didn't receive any requests.
On the retry, we received requests for shards 2,4 and we were able to process them successfully.

[Test being stuck in InProgress]
Since, the run was for 5 shards, and we only received shards 2,4. That is why it took some to close the run from our end.
It should have been marked completed. Can you please verify if the run is marked as completed now and you are able to see results.

[Can we re-run shards and find the results to be updated]
For the service, every run is independent. If you do a re-run from GH Actions, the service will treat it as a new run and will show you the results in the workspace.

For any other queries or issues, you can post it out on GitHub issues.
Thanks

@angelo-loria
Copy link
Author

I do see now that they are completing but it takes such a long time that it's not usable. What is an expected timeframe for the report to complete? For example, this one has been processing for over two hours:
Image

@vvs11 vvs11 added the bug Something isn't working label Nov 1, 2024
@abranj19
Copy link
Member

Hi @angelo-loria, Thanks for reporting this. We are thinking more on this about adding support for rerun failed jobs and will get back to you soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants