Skip to content

feat: Ghost RUM Key Fix #1656

Closed
tkotthakota-adobe wants to merge 15 commits into
mainfrom
SITES-46095
Closed

feat: Ghost RUM Key Fix #1656
tkotthakota-adobe wants to merge 15 commits into
mainfrom
SITES-46095

Conversation

@tkotthakota-adobe

Copy link
Copy Markdown
Contributor

https://jira.corp.adobe.com/browse/SITES-46095

Problem sites: aashirvaad.com — CWV audits returned empty results because the RUM system had a domain key registered for www.aashirvaad.com but no actual data behind it. The resolver saw the key, assumed the www version was correct, and all audits queried the wrong domain.
What was fixed in the shared library (spacecat-shared-utils)

The shared wwwUrlResolver function now does a second check after finding a domain key: it calls the RUM bundler API to confirm there is real data behind the key. If the bundler returns an empty result, the key is treated as a ghost and the resolver moves on to try the original domain. Previously it trusted key existence alone.

What was fixed in the audit worker (spacecat-audit-worker)

The audit worker had its own full copy of the resolver logic that was diverging from the shared library. This was replaced with a thin wrapper that calls the shared library's resolver. On top of that, once the correct domain is confirmed, the wrapper now saves it as overrideBaseURL in the site's config — so future audits skip the probe entirely and go straight to the right domain.

@tkotthakota-adobe

Copy link
Copy Markdown
Contributor Author

Closing as duplicate to #1657

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.

1 participant