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

devops: start downloading webkit fork on Mac 10.14 #5837

Merged

Conversation

aslushnikov
Copy link
Contributor

References #5833

@@ -203,7 +203,11 @@ export class Registry {

constructor(packagePath: string) {
const browsersJSON = JSON.parse(fs.readFileSync(path.join(packagePath, 'browsers.json'), 'utf8'));
this._descriptors = browsersJSON['browsers'];
this._descriptors = browsersJSON['browsers'].map((obj: any) => ({
name: obj.name,
Copy link
Member

Choose a reason for hiding this comment

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

This way browser path stays the same and there is no way for us to tell if webkit-1444 in the cache is legacy mac14 build or the one that works for all newer OSes (if e.g. somebody puts it in a bug report). I can also imagine scenario where people upgrade their mac from 14 to something newer and use legacy build because it has matching version in the registry. Considering all that, I'd rather we put them in separate directories in the client side cache as well. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can also imagine scenario where people upgrade their mac from 14 to something newer and use legacy build because it has matching version in the registry.

@yury-s Good point!

const name = obj.name;
const revisionOverride = (obj.revisionOverrides || {})[hostPlatform];
const revision = revisionOverride || obj.revision;
const browserDirectory = revisionOverride ? `${name}-${hostPlatform}-special-${revision}` : `${name}-${revision}`;
Copy link
Member

Choose a reason for hiding this comment

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

do we really need 'special' in the name, maybe drop it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to make sure it stands out. Otherwise, the name webkit-mac10.14-1234 is not eye-catching in any way, given that I'm on mac10.14

@aslushnikov aslushnikov force-pushed the start-downloading-webkit-fork branch from 2f47d53 to 42d66bb Compare March 17, 2021 07:00
@aslushnikov aslushnikov merged commit ae460f0 into microsoft:master Mar 17, 2021
@aslushnikov aslushnikov deleted the start-downloading-webkit-fork branch March 17, 2021 16:34
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