SCRAPE-3: Implement fetchPage() with axios, timeout, retry #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "scraper/fetch-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test Plan
❌ Changes Requested
Two issues: (1) Deleted scraperConfig.test.js removes 192 lines of config test coverage with no justification. (2) Deploy workflow change from
github.head_ref || github.ref_nametogithub.ref_namewill break branch name resolution for PR-triggered webhook payloads.Issues:
tests/scraper/scraperConfig.test.js:0
This test file (192 lines) was deleted entirely. These tests validate the scraper config module's defaults, environment variable overrides, and type coercion. Even though the config changes were minor (comment cleanup, parseInt radix), removing the tests reduces coverage. Please restore this file or explain why these tests are no longer needed.
.github/workflows/deploy.yml:131
Changed from
github.head_ref || github.ref_nametogithub.ref_name. For pull_request events,github.ref_nameresolves to the merge ref (e.g.,refs/pull/8/merge) rather than the source branch name. The original pattern is correct:head_refprovides the source branch on PRs,ref_nameis the fallback for push events. This change will send incorrect branch names in the webhook payload for PR builds. Please revert this line.19baf43493tod09aa1d179Root Cause
The branch was created before SCRAPE-2 (PR #7) was merged into dev. The PR diff showed SCRAPE-2 changes as "deleted" because the branch didn't include them.
Resolution
github.head_ref || github.ref_namefix is preserved from SCRAPE-2parseIntradix parameter improvementVerification
+-------+--------------------------------+-------+---------+-----------+------------------+--------+
| INDEX | TITLE | STATE | AUTHOR | MILESTONE | UPDATED | LABELS |
+-------+--------------------------------+-------+---------+-----------+------------------+--------+
| 8 | SCRAPE-3: Implement | open | stephen | | 2026-02-05 15:46 | |
| | fetchPage() with axios, | | | | | |
| | timeout, retry | | | | | |
+-------+--------------------------------+-------+---------+-----------+------------------+--------+