Skip to content

BugFix IPv6 prefix manifest search & unit tests#7

Merged
devnomadic merged 3 commits into
mainfrom
bug/ipv6-prefix-search
Oct 15, 2025
Merged

BugFix IPv6 prefix manifest search & unit tests#7
devnomadic merged 3 commits into
mainfrom
bug/ipv6-prefix-search

Conversation

@devnomadic

Copy link
Copy Markdown
Owner

This pull request introduces comprehensive improvements to testing, build automation, and IPv6 support, along with updates to cloud provider IP manifests and documentation. The most significant changes include adding a full unit test suite for IP range matching, enhancing the build process to run tests automatically, extending the application to support IPv6 cloud IP range matching, and updating documentation to reflect these enhancements.

Testing and Build Automation

  • Added a new test project (Tests/Albatross.Tests.csproj) with 41 unit tests covering IPv4 and IPv6 matching, edge cases, and real-world cloud provider ranges.
  • Enhanced the build script (build.sh) to detect and use the appropriate .NET SDK, run all tests before building, and abort the build if any tests fail.
  • Updated .vscode/tasks.json to add "test" and "build-and-test" tasks for easier local development and validation.
  • Modified Albatross.csproj to exclude the Tests folder from the main build to prevent duplicate compilation.

IPv6 Support and Application Logic

  • Extended the IP matching logic in Pages/Home.razor to support IPv6 cloud provider ranges, including robust validation for prefix lengths and improved error handling. [1] [2] [3] [4]

Documentation Updates

  • Expanded the README.md with detailed instructions on running tests, test coverage breakdown, CI/CD integration, and an updated project structure reflecting the new test suite. [1] [2]

Cloud Provider Manifest Updates

These changes collectively improve the reliability, maintainability, and functionality of the project, especially regarding cloud IP range detection and automated quality assurance.

@github-actions

github-actions Bot commented Oct 14, 2025

Copy link
Copy Markdown

🚀 PR Status Dashboard

📊 Workflow Status

CI: pending
Deploy: success (view)

🌐 Preview Environments

SPA Preview: https://bug-ipv6-prefix-search.albatross-5kt.pages.dev
Worker Preview: https://abuseipdb-preview.devnomadic.workers.dev

📝 PR Details

Branch: bug/ipv6-prefix-search
Commit: fa749271
Author: @devnomadic
Target: main
Last Updated: 2025-10-14T15:36:45.794Z


This comment is automatically updated by the PR Update workflow

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 14, 2025

Copy link
Copy Markdown

Deploying albatross with  Cloudflare Pages  Cloudflare Pages

Latest commit: fa74927
Status: ✅  Deploy successful!
Preview URL: https://370266be.albatross-5kt.pages.dev
Branch Preview URL: https://bug-ipv6-prefix-search.albatross-5kt.pages.dev

View logs

@devnomadic devnomadic merged commit 55e023c into main Oct 15, 2025
10 checks passed
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