Skip to content

Restore the check for missing adblock manifests when packaging#848

Merged
antonok-edm merged 1 commit intomasterfrom
restore-skip-missing-manifests
Feb 15, 2024
Merged

Restore the check for missing adblock manifests when packaging#848
antonok-edm merged 1 commit intomasterfrom
restore-skip-missing-manifests

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.
@antonok-edm antonok-edm self-assigned this Feb 15, 2024

// 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
@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