Skip to content

Conversation

masaushi
Copy link
Contributor

This implementation adds support for Har recording option.
Related issue is #253.

@masaushi masaushi force-pushed the support-har-recording branch from 3f3e47a to d0c179c Compare April 29, 2022 12:49
}

func (p *pageImpl) Video() Video {
p.Lock()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't related to the issue #253, but for race condition detected in a CI test.
https://github.com/playwright-community/playwright-go/runs/6224590861

@masaushi masaushi force-pushed the support-har-recording branch from bb34ab2 to 6271693 Compare April 29, 2022 14:19
Comment on lines +34 to +52
- name: Cache modules and build
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests on github actions are randomly failed because of timed out of test execution.
I tried to fix them but I didn't find out the root cause, and even now I don't know any solution.

My trials were extending test executing time and caching dependencies, and unfortunately both of them were ineffective.
But I think caching is valuable so the cache setting is remained.

@mxschmitt mxschmitt merged commit 8496add into playwright-community:main May 1, 2022
@masaushi masaushi deleted the support-har-recording branch May 2, 2022 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants