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

tests: hash more files for devtools test cache #11417

Merged
merged 3 commits into from
Sep 14, 2020
Merged

Conversation

connorjclark
Copy link
Collaborator

For changes like #11411 . GitHub actions cache will keep stuff around for a week, so we need a way to invalidate it when the devtools bundle changes.

@connorjclark connorjclark requested a review from a team as a code owner September 11, 2020 19:58
@connorjclark connorjclark requested review from brendankenny and removed request for a team September 11, 2020 19:58
@connorjclark
Copy link
Collaborator Author

Oh, I do expect this to fail now because of #11414 (comment)

${{ env.DEVTOOLS_PATH }}
${{ env.BLINK_TOOLS_PATH }}
${{ github.workspace }}/lighthouse/.tmp/chromium-web-tests/content-shells
key: ${{ runner.os }}-${{ hashFiles('lighthouse/.github/workflows/devtools.yml', 'lighthouse/dist/lighthouse-dt-bundle.js', 'lighthouse/lighthouse-core/test/chromium-web-tests/download-*') }}
Copy link
Member

Choose a reason for hiding this comment

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

lighthouse/dist/lighthouse-dt-bundle.js

won't this mean it won't use the cache on basically any change to core?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

shoot, good point. I will use the build bundle, devtools entry, and devtools reports files instead.

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM, probably! 😁

@paulirish
Copy link
Member

Current CI failure is that is cuz it wants #11418 landed

image

@paulirish
Copy link
Member

i guess the retry_3 line in run-web-tests.sh is being a jerk

image

@devtools-bot devtools-bot merged commit e5dee43 into master Sep 14, 2020
@devtools-bot devtools-bot deleted the devtools-test-hash branch September 14, 2020 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants