Skip to content

fix(generator): run check-repository for every repo at startup (ACWEB-6)#1

Open
rkkmkkfx wants to merge 2 commits into
stagingfrom
fix/acweb-6-check-repositories-doall
Open

fix(generator): run check-repository for every repo at startup (ACWEB-6)#1
rkkmkkfx wants to merge 2 commits into
stagingfrom
fix/acweb-6-check-repositories-doall

Conversation

@rkkmkkfx

@rkkmkkfx rkkmkkfx commented Jun 2, 2026

Copy link
Copy Markdown

Problem (ACWEB-6, found via live pg-stg inspection)

check-repositories builds its result with a lazy map that only notifier/complete-sync would realize. The notifier is now a no-op stub, so the map is never realized → check-repository never runs → repos keep :git nil and the startup sync silently never happens.

Live evidence on pg-stg: DB frozen since 2019; no Repository "X" - OK log lines ever; redis {:repo "api"} jobs hit :git nilNullPointerException loop.

Fix

Wrap the map in doall so check-repository (sets :git, triggers startup sync) runs for every repo, independent of the notifier.

Scope

One-line behavior fix in src/playground/generator/core.clj (check-repositories). No signature change.

Not included (tracked in ACWEB-6)

  • delete-repo FK bug (canonical_visits) — already manually unblocked on staging.
  • PhantomJS preview-generator startup failure.
  • Java 8 box vs Java 11 jar (MaxCDN) — base commit already removes MaxCDN.
  • RC- version-naming gate (released-version? / branches).

Verify after deploy (pg-stg, #pg)

Restart pg-stg → expect Repository "X" - OK logs, fresh versions.create_date, and the editor version list refreshing.

rkkmkkfx added 2 commits June 2, 2026 10:19
check-repositories built its result with a lazy map realized only by
notifier/complete-sync. The notifier is now a no-op stub, so the map was
never realized -> check-repository never ran -> repos kept :git nil and the
startup sync silently never happened (staging frozen since 2019; redis jobs
hit nil :git -> NPE). Wrap the map in doall to decouple the sync from the
notifier.

Refs ACWEB-6.
…B-6)

update-anychart-versions fetched only /branches, so the editor's AnyChart
version dropdown showed branch names (RC-*, feature) but none of the bare
release tags (8.8.0..8.14.1). Also fetch /tags and merge; strip the leading
v from semver tags (v8.14.1 -> 8.14.1) since cdn.anychart.com/releases/<v>/
is bare (v8.14.1 -> 404, 8.14.1 -> 200). v7/v8 aliases left intact.

Refs ACWEB-6.
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