Skip to content

Guard Algolia facet fetch with cached-data fallback#2

Draft
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-failing-ci
Draft

Guard Algolia facet fetch with cached-data fallback#2
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-failing-ci

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 11, 2026

The Update APIs workflow fails when the Algolia facet response is missing or unavailable, causing the fetcher to crash before generating artifacts. This change keeps the workflow running by falling back to cached data when the facet request is invalid.

  • ### Reliability guardrails
    • Add a cached-data fallback when the facet request fails, returns no results, or lacks batch facets.
    • Clarify failure context in cached-data load errors to aid diagnosis without masking underlying issues.

Example:

if (!json.results?.length) {
  console.warn("No results returned. Using existing data.");
  return loadExistingCompanies("response missing results");
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 45bwzj1sgc-dsn.algolia.net
    • Triggering command: /usr/bin/curl curl -sS -X POST REDACTED*/queries?x-algolia-agent=Algolia+for+JavaScript+%283.35.1%29%3B+Browser%3B+JS+Helper+%283.16.1%29&x-algolia-application-id=45BWZJ1SGC&x-algolia-api-key=MjBjYjRiMzY0NzdhZWY0NjExY2NhZjYxMGIxYjc2MTAwNWFkNTkwNTc4N (dns block)
    • Triggering command: /tmp/deno/deno /tmp/deno/deno run --unsafely-ignore-certificate-errors=deno.land --allow-net --allow-read --allow-write fetcher.ts (dns block)
    • Triggering command: /tmp/deno/deno /tmp/deno/deno run --unsafely-ignore-certificate-errors=deno.land --allow-net --allow-read --allow-write fetcher.ts de/node/bin/git (dns block)
  • dl.deno.land
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
    • Triggering command: /tmp/deno/deno /tmp/deno/deno run --unsafely-ignore-certificate-errors=deno.land --allow-net --allow-read --allow-write fetcher.ts (dns block)
    • Triggering command: /tmp/deno/deno /tmp/deno/deno run --unsafely-ignore-certificate-errors=deno.land --allow-net --allow-read --allow-write fetcher.ts de/node/bin/git (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits February 11, 2026 06:11
Co-authored-by: AnandChowdhary <2841780+AnandChowdhary@users.noreply.github.com>
Co-authored-by: AnandChowdhary <2841780+AnandChowdhary@users.noreply.github.com>
Co-authored-by: AnandChowdhary <2841780+AnandChowdhary@users.noreply.github.com>
Co-authored-by: AnandChowdhary <2841780+AnandChowdhary@users.noreply.github.com>
Co-authored-by: AnandChowdhary <2841780+AnandChowdhary@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing continuous integration Guard Algolia facet fetch with cached-data fallback Feb 11, 2026
Copilot AI requested a review from AnandChowdhary February 11, 2026 06:16
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.

2 participants