10000 [MWPW-172587] Preflight check status by skholkhojaev · Pull Request #4496 · adobecom/milo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dismiss alert

[MWPW-172587] Preflight check status #4496

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

Open
wants to merge 22 commits into
base: stage
Choose a base branch
from

Conversation

skholkhojaev
Copy link
Contributor
8000 @skholkhojaev skholkhojaev commented Jul 1, 2025

Now Preflight will be ran automatically when the page is loaded (once the utils.js is loaded).

After Preflight is done running in the background, it will cache its results and when the User clicks on tools>preflight to open up the Preflight Panel then the checks first look for already existing caches and if none were found they will then be ran manually.

Also added a notification bar to inform the Athors of any failling checks, The Athors can click on the review button to open up the Preflight Panel and get more details.

Resolves: MWPW-172587
Test URLs:

@skholkhojaev skholkhojaev requested a review from a team as a code owner July 1, 2025 13:48
Copy link
Contributor
aem-code-sync bot commented Jul 1, 2025
Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor
@mokimo mokimo left a comment

Choose a reason for hiding this comment

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

There is no ASO, let's not write any code for something we don't have yet. Thinking ahead is good, but a project might get killed, stale, or implemented a year later.

It's usually not worth to thinking beyond your current use-case within a PR, so I'd suggest to remove everything related to ASO

@skholkhojaev
Copy link
Contributor Author
skholkhojaev commented Jul 1, 2025

There is no ASO, let's not write any code for something we don't have yet

@narcis-radu @robert-bogos
I am down to remove the ASO for now until its implemnted but i want to hear your confirmation and opinion about it.

Because we talked about it in our sync and the diagram, that there should be a "config type" to determain which Prefligh will be used and a "coverter" that would standardized the results.

Copy link
Contributor
github-actions bot commented Jul 2, 2025

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Copy link
Contributor
@mokimo mokimo left a comment

Choose a reason for hiding this comment

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

Let's also hear what Robert & Narcis have to say. But as an alternative, you could also raise the ASO specific implementation towards our ASO POC branch.

That way you can split this into "get the initial ticket & feature running"
and "make it compatible with the new feature (in it's own branch)"

... Having smaller PRs also makes this easier and more concise to review, focussing on the core bits of each PR:

  • guide authors with page health checks
  • create an ASO compatibility layer

@skholkhojaev
Copy link
Contributor Author

overall thankyou for the review i'll go and change them @mokimo 👍

@narcis-radu
Copy link
Contributor

There is no ASO, let's not write any code for something we don't have yet

@narcis-radu @robert-bogos I am down to remove the ASO for now until its implemnted but i want to hear your confirmation and opinion about it.

Because we talked about it in our sync and the diagram, that there should be a "config type" to determain which Prefligh will be used and a "coverter" that would standardized the results.

We had to think about abstracting the logic to allow known future use-cases, so it makes sense to have the "config type". However, at this point it doesn't make sense to actually handle the details, so let's remove the ASO logic.

@skholkhojaev
Copy link
Contributor Author

don't u already cache it in the preflight API, why here as well?
also why do you need a method to executePreflightChecks if the API already has a getResults method

the preflightExecutor.js was initially written with the assumption of ASO Api, but since I removed it, there isnt really a purpose for the file anymore besides two function which 100% could be handled over to preflightApi.js

im thinking of deleting the file and making things much simpler until we have ASO implemented.

@robert-bogos
Copy link
Contributor

don't u already cache it in the preflight API, why here as well?
also why do you need a method to executePreflightChecks if the API already has a getResults method

the preflightExecutor.js was initially written with the assumption of ASO Api, but since I removed it, there isnt really a purpose for the file anymore besides two function which 100% could be handled over to preflightApi.js

im thinking of deleting the file and making things much simpler until we have ASO implemented.

IMO, we only have to gain by gradually refactoring Preflight to accommodate ASO. It saves us time later, and while a case can be made that ASO might not happen, I think it’s clear by now that it will.

Since there’s no immediate time pressure, we can advance now, unlike the possible tight deadlines when ASO integration becomes necessary. Also, since both Preflight and ASO are evolving in parallel, would help to build bridges (e.g., preflightExecutor.js) to keep them aligned.

@robert-bogos
Copy link
Contributor

After further discussion, the best way forward seems to be keeping preflightApi.js as the determiner of how the checks logic runs. So @skholkhojaev, you can go ahead and remove preflightExecutor.js. I’ll modify preflightApi.js later to accommodate the ASO integration when the time comes.

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.

4 participants
0