Force IPv4 for knowledge-search indexer DB connections on GitHub Actions#741
Merged
Conversation
Agent-Logs-Url: https://github.com/z-shell/wiki/sessions/73a3cdf1-4f11-432c-b6bb-109fb76e7561 Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com>
Deploying zsh with
|
| Latest commit: |
6bea222
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c2024bea.zsh.pages.dev |
| Branch Preview URL: | https://copilot-fix-knowledge-search.zsh.pages.dev |
Copilot
AI
changed the title
[WIP] Fix network error in knowledge-search:index job
Force IPv4 for knowledge-search indexer DB connections on GitHub Actions
May 22, 2026
ss-o
approved these changes
May 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a CI reliability issue where the knowledge-search indexer fails on GitHub Actions runners due to Supabase resolving to an IPv6 address while ubuntu-latest lacks outbound IPv6 routing.
Changes:
- Forces IPv4 DNS selection for the indexer’s Postgres connection by passing
family: 4topostgres()in the embedding/indexing script.
ss-o
approved these changes
May 22, 2026
ss-o
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
knowledge-search:indexfails onubuntu-latestbecause the Supabase hostname can resolve to IPv6, while the runner has no outbound IPv6 route (ENETUNREACH). This change forces IPv4 address selection for the indexer’s Postgres connection.Connection behavior update (
scripts/knowledge-search/embed-docs.mjs)postgres()client options to includefamily: 4.Why this addresses the failure
postgres.jsnow resolves/uses IPv4 for the DB socket, avoiding unreachable IPv6 paths on the GitHub-hosted runner.Original prompt
This pull request was created from Copilot chat.