-
Notifications
You must be signed in to change notification settings - Fork 157
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-only][full-ci]Cache playwright chromium #11958
base: master
Are you sure you want to change the base?
Conversation
b8ec784
to
6473018
Compare
6473018
to
3d82a58
Compare
31a1f65
to
fa7388c
Compare
fa7388c
to
3bb587f
Compare
72181e5
to
76178bc
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using browsers
instead of chromium
@@ -39,6 +39,7 @@ dir = { | |||
"ocisRevaDataRoot": "/srv/app/tmp/ocis/owncloud/data/", | |||
"federatedOcisConfig": "/var/www/owncloud/web/tests/drone/config-ocis-federated.json", | |||
"ocmProviders": "/var/www/owncloud/web/tests/drone/providers.json", | |||
"chromiumZip": "/var/www/owncloud/web/playwright-chromium.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"chromiumZip": "/var/www/owncloud/web/playwright-chromium.tar.gz", | |
"playwrightBrowsersArchive": "/var/www/owncloud/web/playwright-browsers.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the problem with chromium? I don't see being specific a pblm playwrightChromiumArchive
than playwrightBrowsersArchive
. IMO browser denotes multiple browser if we zip multiple browser than it sound good but i don't see any pblm uysing chromium name this comment is reply for overall comment. Can you avoid creating crowd while commenting? similar thing can be cover in one comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the archive is of a folder where browsers are installed by playwright not only chromium
Should we create another path entry for other browsers? like playwright-firefox.tar.gz
"image": OC_CI_NODEJS, | ||
"environment": { | ||
"PLAYWRIGHT_BROWSERS_PATH": ".playwright", | ||
"PLAYWRIGHT_BROWSERS_PATH": ".chromium", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"PLAYWRIGHT_BROWSERS_PATH": ".chromium", | |
"PLAYWRIGHT_BROWSERS_PATH": ".playwright", |
@@ -716,15 +723,16 @@ def installPnpm(): | |||
], | |||
}] | |||
|
|||
def installPlaywright(): | |||
def installChromium(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def installChromium(): | |
def installBrowsers(): |
return [{ | ||
"name": "playwright-install", | ||
"name": "chromium-install", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "chromium-install", | |
"name": "install-browsers", |
@@ -1899,3 +1910,51 @@ def getOcislatestCommitId(ctx): | |||
], | |||
}, | |||
] | |||
|
|||
def cacheChromium(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def cacheChromium(): | |
def cacheBrowsers(): |
|
||
def checkChromiumCache(): | ||
return [{ | ||
"name": "check-chromium-cache", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "check-chromium-cache", | |
"name": "check-browsers-cache", |
], | ||
}] | ||
|
||
def restoreChromiumCache(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def restoreChromiumCache(): | |
def restoreBrowsersCache(): |
def restoreChromiumCache(): | ||
return [ | ||
{ | ||
"name": "restore-chromium-cache", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "restore-chromium-cache", | |
"name": "restore-browsers-cache", |
], | ||
}, | ||
{ | ||
"name": "unzip-chromium-cache", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "unzip-chromium-cache", | |
"name": "unzip-browsers-cache", |
} | ||
|
||
# Function to check if the cache exists for the given commit ID | ||
check_chromium_cache() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_chromium_cache() { | |
check_browsers_cache() { |
thank you Amrita, that is great job 👍
|
Description
This PR
PLUGINS_S3 = "plugins/s3:1.5"
versionNote
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Open tasks: