Skip to content

Use pre-built scraper binary in scrape workflows#3557

Merged
cuihtlauac merged 2 commits intomainfrom
use-released-scraper
Mar 10, 2026
Merged

Use pre-built scraper binary in scrape workflows#3557
cuihtlauac merged 2 commits intomainfrom
use-released-scraper

Conversation

@cuihtlauac
Copy link
Collaborator

@cuihtlauac cuihtlauac commented Mar 9, 2026

Summary

  • Add SCRAPE variable to Makefile, defaulting to dune exec for local dev
  • Scrape workflows (scrape.yml, scrape_platform_releases.yml) now download the pre-built binary from the scraper-latest release instead of rebuilding from source
  • Only runtime libs (libev4, libonig5) are installed — no OCaml toolchain needed
  • Depends on Add workflow to build and release scraper binary #3556

Test plan

  • Merge Add workflow to build and release scraper binary #3556 first and trigger release-scrapers.yml via workflow_dispatch
  • Verify scraper-latest release exists with scrape.exe asset
  • Merge this PR
  • Trigger scrape.yml via workflow_dispatch and verify it downloads the binary and runs successfully
  • Trigger scrape_platform_releases.yml via workflow_dispatch and verify likewise
  • Verify make scrape_ocaml_planet still works locally (uses dune exec)

🤖 Generated with Claude Code

cuihtlauac and others added 2 commits March 9, 2026 10:13
When tool/ or src/ changes on main, build the scraper and publish
it as a GitHub release (scraper-latest). This avoids rebuilding the
OCaml toolchain on every daily scrape run.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the full OCaml toolchain setup (setup-ocaml, opam install,
dune build) with downloading the pre-built binary from the
scraper-latest GitHub release. This cuts the scrape job setup from
several minutes to a few seconds.

- Add SCRAPE variable to Makefile (defaults to dune exec for local dev)
- Scrape workflows now download the binary and pass SCRAPE=./scrape.exe
- Only runtime libs (libev4, libonig5) are installed, not -dev packages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Base automatically changed from release-scrapers-workflow to main March 10, 2026 08:34
@cuihtlauac cuihtlauac merged commit bf11e90 into main Mar 10, 2026
3 checks passed
@cuihtlauac cuihtlauac deleted the use-released-scraper branch March 10, 2026 09:28
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