Skip to content

Dev#24

Closed
exzosverse-os wants to merge 10 commits intodevelopfrom
main
Closed

Dev#24
exzosverse-os wants to merge 10 commits intodevelopfrom
main

Conversation

@exzosverse-os
Copy link
Owner

📋 Summary

Related Issue: Fixes #

🎯 What

🤔 Why

🔧 How

🧪 Testing

  • I have tested these changes locally
  • All existing tests pass (uv run task test for backend, pnpm test for frontend)
  • I have added new tests for new functionality
  • I have run linting and type checking (uv run task lint && uv run task lint_types for backend)

Test Instructions

🖼️ Screenshots/Recordings

📝 Additional Notes

✅ Pre-submission Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated the relevant tests
  • All tests pass locally
  • AI/LLM Policy: If I used AI assistance, I have tested and executed the code locally (not just "vibe-coded")

exzosverse-os and others added 10 commits February 23, 2026 05:08
…ith runners with ubuntu-latest

Co-authored-by: exzosverse-os <248856943+exzosverse-os@users.noreply.github.com>
ci: deploy strategy main→production, develop→preview; replace blacksmith runners
…cret

When the IPINFO_ACCESS_TOKEN secret is not configured in the repository,
BuildKit doesn't create the secret mount at /run/secrets/IPINFO_ACCESS_TOKEN.
The build then fails with: cat: can't open '/run/secrets/IPINFO_ACCESS_TOKEN': No such file or directory

This change adds a conditional check for the secret file existence before
attempting to read it. If the secret is not available, the build continues
with a warning and skips the IPInfo database download.

Co-authored-by: exzosverse-os <248856943+exzosverse-os@users.noreply.github.com>
…secret

fix: make Docker build resilient to missing IPINFO_ACCESS_TOKEN secret
Copilot AI review requested due to automatic review settings February 23, 2026 09:05
@vercel
Copy link

vercel bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
exzos-pay Ignored Ignored Feb 23, 2026 9:05am

@gemini-code-assist
Copy link

Summary of Changes

Hello @exzosverse-os, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the project's deployment and build processes. It updates the Vercel configuration to streamline web application deployments by restricting automatic builds to the main and develop branches. Concurrently, it improves the Docker build process for the server by making the IPInfo database download optional, dependent on the presence of an access token, which enhances build flexibility and resilience.

Highlights

  • Vercel Deployment Logic: Modified the Vercel ignoreCommand to prevent deployments from all branches except main and develop, ensuring only designated branches trigger builds.
  • Docker Build Robustness: Enhanced the server/Dockerfile to conditionally download the IPInfo database. The download now only proceeds if the IPINFO_ACCESS_TOKEN secret is provided, preventing build failures in environments where the token is absent.
Changelog
  • clients/apps/web/vercel.json
    • Updated the ignoreCommand to include the develop branch in the deployment exclusion logic.
  • server/Dockerfile
    • Implemented conditional logic for downloading the IPInfo database, requiring the IPINFO_ACCESS_TOKEN to be present.
    • Added a warning message if the IPINFO_ACCESS_TOKEN is not found, indicating that the IPInfo database download will be skipped.
Ignored Files
  • Ignored by pattern: .github/workflows/** (4)
    • .github/workflows/deploy.yml
    • .github/workflows/terraform.yaml
    • .github/workflows/test_client.yaml
    • .github/workflows/test_server.yaml
Activity
  • No specific activity (comments, reviews, progress) was provided in the pull request context.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a dual-branch deployment strategy, migrates from Blacksmith to standard GitHub runners, and makes the IPInfo database download optional during Docker builds.

Changes:

  • Enables independent deployments for both main (production) and develop (sandbox/preview) branches
  • Migrates all GitHub Actions workflows from Blacksmith runners to ubuntu-latest
  • Makes IPInfo database download optional in Docker builds when IPINFO_ACCESS_TOKEN is not provided
  • Updates Vercel configuration to deploy from both main and develop branches

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
server/Dockerfile Adds conditional logic to skip IPInfo database download when token is unavailable, creating empty /data directory instead
clients/apps/web/vercel.json Updates ignoreCommand to allow deployments from both main and develop branches
.github/workflows/test_server.yaml Migrates all jobs from blacksmith-4vcpu-ubuntu-2404 to ubuntu-latest
.github/workflows/test_client.yaml Migrates both jobs from blacksmith-4vcpu-ubuntu-2404 to ubuntu-latest
.github/workflows/terraform.yaml Migrates lint job from blacksmith-2vcpu-ubuntu-2404 to ubuntu-latest
.github/workflows/deploy.yml Enables develop branch triggers, adds branch-specific concurrency groups, migrates to ubuntu-latest and official Docker actions, makes deploy-sandbox and deploy-production independent with branch-specific conditions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

curl -fsSL "https://ipinfo.io/data/free/country_asn.mmdb?token=${TOKEN}" -o /data/country_asn.mmdb && \
echo "${EXPECTED_SHA256} /data/country_asn.mmdb" | sha256sum -c - ; \
else \
echo "WARNING: IPINFO_ACCESS_TOKEN not provided, skipping IPInfo database download" ; \
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When IPINFO_ACCESS_TOKEN is not provided, the /data directory is created but remains empty. The COPY command at a later stage (COPY --from=download-ipinfo /data /data) will still succeed, but the application will receive an empty directory. This is actually handled correctly by the application code (server/polar/app.py lines 147-154), which gracefully handles the FileNotFoundError. However, it would be clearer to create a marker file or document this behavior explicitly in a comment to indicate that the empty directory is intentional for builds without the token.

Suggested change
echo "WARNING: IPINFO_ACCESS_TOKEN not provided, skipping IPInfo database download" ; \
echo "WARNING: IPINFO_ACCESS_TOKEN not provided, skipping IPInfo database download" && \
# Create a marker file so that the empty /data directory is clearly intentional
touch /data/IPINFO_DATABASE_NOT_DOWNLOADED ; \

Copilot uses AI. Check for mistakes.
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces changes to Vercel deployment configuration and Dockerfile for the server. The Vercel configuration now includes the 'develop' branch in the ignore command, which is a good practice for managing deployments. The Dockerfile changes improve the IPInfo database download process by making it conditional on the presence of an access token, which enhances flexibility and error handling during builds. Overall, the changes are positive for deployment and build robustness.

"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "cd ../.. && turbo run build --filter=web",
"ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" != \"main\" ]; then exit 0; fi; npx turbo-ignore",
"ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" != \"main\" ] && [ \"$VERCEL_GIT_COMMIT_REF\" != \"develop\" ]; then exit 0; fi; npx turbo-ignore",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding develop to the ignoreCommand is a good practice to prevent unnecessary deployments from the develop branch, aligning with typical CI/CD workflows where only main or specific release branches trigger production deployments.

  "ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" != \"main\" ] && [ \"$VERCEL_GIT_COMMIT_REF\" != \"develop\" ]; then exit 0; fi; npx turbo-ignore"

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.

3 participants