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

core(installable-manifest): always run InstallabilityErrors in legacy mode #13622

Merged
merged 6 commits into from
Mar 23, 2022

Conversation

adamraine
Copy link
Member

I was investigating why we still have --invert-match pwa offline on our FR CI smoke runner. Pretty much everything works since we got rid of the redirect pass. The one exception was the installable manifest audit.

We don't run InstallabilityErrors in legacy mode if we don't detect a manifest ourselves, so InstallabilityErrors is just the default empty value. We fill the void in installable-manifest with the "No manifest was fetched" error from our own computed artifact ManifestValues.

However, InstallabilityErrors is always run in FR because it's used as a normal gatherer. The audit will then have 2 errors in FR, "Page has no manifest URL" from InstallabilityErrors and "No manifest was fetched" from ManifestValues.

I think the best solution is to run InstallabilityErrors every time in legacy mode, and get rid of the ManifestValues dependency in installable-manifest.

Related
#12861
#11313

@adamraine adamraine requested a review from a team as a code owner February 3, 2022 17:04
@adamraine adamraine requested review from connorjclark and removed request for a team February 3, 2022 17:04
reason: manifestValues.parseFailureReason});

// If InstallabilityErrors is empty, double check ManifestValues to make sure nothing was missed.
// InstallabilityErrors can be empty erroneously in our DevTools web tests.
Copy link
Member Author

Choose a reason for hiding this comment

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

For some reason, InstallabilityErrors is empty in our DevTools web tests even though no manifest was fetched. Assuming this is a valid possibility, we can fall back to the old manifest failure reason.

@adamraine adamraine merged commit a3faef5 into master Mar 23, 2022
@adamraine adamraine deleted the always-installability-errors branch March 23, 2022 23:37
@connorjclark connorjclark mentioned this pull request May 9, 2022
30 tasks
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.

None yet

3 participants