Skip to content

API deployment races npm publish #357

Description

@LeoMcA

On the last two API prod builds run after a dispatch from the bcd repo, our npm update has run before bcd's npm publish has fully propagated, and we've fetched the last but one version:

e.g. https://github.com/mdn/browser-compat-data/releases/tag/v8.0.10 was released, and kicked off a build, but 8.0.9 was fetched instead: https://github.com/mdn/bcd-utils/actions/runs/31111332021/job/92649598856#step:5:13

This is a recurrence of #133

It seems like things have gotten slower in npm land lately, so even if the npm publish command has exited, that version isn't available for everyone through npm yet.

One solution for this could be to add the version to the client_payload of the repository_dispatch and poll in the deploy job until that version appears on npm.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions