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

Restore the check for missing adblock manifests when packaging #848

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

antonok-edm
Copy link
Collaborator

Previously, only directories with a manifest.json were considered for packaging. Now we look at the list catalog as the source of truth, but we still need to skip components that were not correctly handled in a previous step.

This would have been avoided by #844 which combines download, manifest generation, and packaging into one abortable function call per-component.

Previously, only directories with a `manifest.json` were considered for
packaging. Now we look at the list catalog as the source of truth, but
we still need to skip components that were not correctly handled in a
previous step.

This should be rectified later by combining the data-files, manifests,
and packaging step into the same pipeline per-component.
@@ -54,6 +54,12 @@ const processComponent = (binary, endpoint, region, keyDir,
const parsedManifest = util.parseManifest(originalManifest)
const id = util.getIDFromBase64PublicKey(parsedManifest.key)

// TODO - previous download failures should prevent the attempt to package the component.
if (!fs.existsSync(originalManifest)) {
console.warn(`Missing manifest for ${componentSubdir}. Skipping.`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we still report this via Sentry?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The only way this happens so far is if there was a previous failure reported by Sentry. Long-term, I wouldn't be comfortable leaving it this way... but in the short term before #844 (which is basically ready), there's no need to have duplicate Sentry notifications every time.

@antonok-edm antonok-edm merged commit 3d55bb1 into master Feb 15, 2024
8 checks passed
@antonok-edm antonok-edm deleted the restore-skip-missing-manifests branch February 15, 2024 22:25
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.

3 participants