kylon-cli 0.7.11-next.1603 → 0.7.11-next.1609

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -580,6 +580,30 @@ version before writing (retrying for registry read lag), and writes through
580
580
  `runtime_config_entry_revisions` audit row apply as for an admin edit. The
581
581
  revision's change reason records the published version, commit and workflow run.
582
582
 
583
+ **npm processing a publish is not a dist-tag problem.** `npm publish` returns
584
+ as soon as the registry accepts the tarball ("Your package is being processed
585
+ and may take a few minutes to become available"); npm lists the version, and
586
+ moves `@next` onto it, only once it has finished processing it. For 40 of the
587
+ 60 prereleases published from 2026-11-02 to 2026-11-07 that took 3-6 minutes;
588
+ the rest took 20 or 25 minutes (17), 55 minutes (2) or 85 minutes (1). The job
589
+ therefore waits for it in a step of its own
590
+ (`scripts/ci/wait-for-npm-publication.ts`, up to 90 minutes, before any secret
591
+ is loaded or the database tunnel is opened), and every registry read takes the
592
+ tag and the version list from one package document, which is what tells the
593
+ two cases apart:
594
+
595
+ - the version is not listed yet — npm is still processing it. Nothing is wrong
596
+ and nothing has to be moved; past the budget the run fails with
597
+ `published_version_unavailable`, names no dist-tag command, and is repaired
598
+ by re-running it once `npm view kylon-cli@<version> version` answers;
599
+ - the version is listed, but `@next` names an older one for a three-minute
600
+ settle window — another publish took the tag after this one, a real lost
601
+ race, handled as described below.
602
+
603
+ Before that wait existed, the sync gave up after 15 minutes and reported every
604
+ slow publish as a dist-tag to move by hand; all 17 sync failures in that window
605
+ were that case.
606
+
583
607
  The write is fenced with the entry version the job read, so it is a
584
608
  compare-and-swap rather than a blind overwrite. That matters because
585
609
  `cli-publish.yml` deliberately gives every run its own concurrency group: two
@@ -622,7 +646,9 @@ Two mechanisms keep them agreeing:
622
646
  The sync job reads an optional `NPM_DIST_TAG_TOKEN` from its `dev`
623
647
  environment; when it is absent, the run fails with an `::error::` naming the
624
648
  exact `npm dist-tag add kylon-cli@<winner> next` to run, instead of reporting
625
- a convergence that did not happen.
649
+ a convergence that did not happen. It names that command only when npm lists
650
+ the winner: a winner npm does not list cannot be tagged, and is either a
651
+ publish still being processed or a hand-edited row.
626
652
 
627
653
  Propagation is not part of the write's success condition. Committing the entry
628
654
  also bumps a per-namespace revision counter and publishes a cache-invalidation
@@ -676,7 +702,8 @@ Two consequences worth knowing:
676
702
  from an ordinary content-dedup skip: both start a sync, but only the re-run
677
703
  has a release of its own to reconcile, so only it may claim one. If the re-run
678
704
  also fails, set `cli_auto_update/next` in the dev admin runtime config by
679
- hand.
705
+ hand — except for `published_version_unavailable`: an entry naming a version
706
+ `@next` does not serve upgrades nobody, so wait for npm and re-run instead.
680
707
 
681
708
  The classifier that tells those two skips apart is
682
709
  `scripts/ci/cli-prerelease-npm.sh` — it emits `sync_reason`, and keeps
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.11-next.1603",
3
- "fingerprint": "ea8e2f28249657b89e965735e900b244558189c53551be4dc757d0602d1b7b14",
4
- "source_commit": "a8a26d7c20c78cc48f01387035442f64ba889bf1"
2
+ "version": "0.7.11-next.1609",
3
+ "fingerprint": "a0eed847cab75ffa3c6b5942d52d391d77325ff47a3c9f75d623db545a44cb55",
4
+ "source_commit": "5eca07fc9b1e52c23f4bd5440e7b2fa0131be7cd"
5
5
  }