You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
This is the result of our initial run:
The initial run results in a working report dashboard:
Rerun the failed jobs in Actions:
After rerunning jobs, we have different results:
The report gets stuck in In Progress and can't be accessed:
Setup information (please complete the following information):*
The text was updated successfully, but these errors were encountered:
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
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
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
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:
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:
Setup information (please complete the following information):*
The text was updated successfully, but these errors were encountered: