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: remove legacy runner #15253

Merged
merged 13 commits into from
Jul 14, 2023
Merged

core: remove legacy runner #15253

merged 13 commits into from
Jul 14, 2023

Conversation

adamraine
Copy link
Member

Biggest, baddest part of #15060 that's 3 years in the making.

There are a few follow-up changes we should make once this lands:

  • Remove the legacy nav option in DT/LR
  • Rename all of the FRTransitional.../FRThis/FRThat types
  • Purge any trace of the words "Fraggle Rock" from this repo and my memory

expect(await gatherer.beforePass(fakeParam)).toBe(undefined);
expect(await gatherer.pass(fakeParam)).toBe(undefined);
expect(await gatherer.afterPass(fakeParam, fakeParam)).toBe(undefined);
});
Copy link
Member Author

Choose a reason for hiding this comment

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

After removing the legacy beforePass/afterPass stuff this test file really isn't testing anything. The base gatherer gets plenty of test coverage from other files.

@@ -7,15 +7,12 @@
import jestMock from 'jest-mock';

import ImageElements from '../../../gather/gatherers/image-elements.js';
import {NetworkRecorder} from '../../../lib/network-recorder.js';
import {createMockContext, createMockDriver, createMockSession} from
Copy link
Member Author

Choose a reason for hiding this comment

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

I recommend disabling whitespace changes to review this file

@@ -24,7 +24,6 @@ import {
renderHtmlInIframe,
selectCategories,
selectDevice,
setLegacyNavigation,
Copy link
Member Author

Choose a reason for hiding this comment

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

I recommend reviewing this file with whitespace changes off

@adamraine adamraine changed the title WIP: remove legacy runner core: remove legacy runner Jul 12, 2023
@adamraine adamraine marked this pull request as ready for review July 12, 2023 23:10
@adamraine adamraine requested a review from a team as a code owner July 12, 2023 23:10
@adamraine adamraine requested review from brendankenny and removed request for a team July 12, 2023 23:10
* Legacy property used to define the artifact ID. In Fraggle Rock, the artifact ID lives on the config.
* @return {keyof LH.GathererArtifacts}
*/
get name() {
Copy link
Member Author

@adamraine adamraine Jul 13, 2023

Choose a reason for hiding this comment

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

Could have kept this for convenience, but since it requires some substr hackery just to work with rollup I figured it's best not to rely on it if we don't have to.

Copy link
Collaborator

@connorjclark connorjclark left a comment

Choose a reason for hiding this comment

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

Removing 6800 LOC, most of which have been around for 5+ years (or maybe 8?), and all tests still pass? LGTM.

@adamraine adamraine merged commit 1ef1faf into main Jul 14, 2023
@adamraine adamraine deleted the remove-legacy branch July 14, 2023 16:54
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.

4 participants