Skip to content

chore: additional e2e tests for gatewayconfig + network config #709

Merged
dines-rl merged 1 commit into
mainfrom
network-config-e2e
Feb 4, 2026
Merged

chore: additional e2e tests for gatewayconfig + network config #709
dines-rl merged 1 commit into
mainfrom
network-config-e2e

Conversation

@dines-rl

@dines-rl dines-rl commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

CodeAnt-AI Description

Add end-to-end tests for creating devboxes with gateway configs and network policies

What Changed

  • New test suite verifies a devbox can be created with both a gateway config and a network policy applied
  • Tests confirm gateway environment variables (URL and token) are injected into the devbox and that network policy and gateway config metadata can be retrieved
  • Gateway request tests are included but skipped due to current infrastructure limitation; they can be enabled once gateway access from policy-bound devboxes is supported

Impact

✅ Clearer gateway + network policy test coverage
✅ Fewer regressions when creating devboxes with gateway and policy
✅ Shorter debugging for missing gateway env vars

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai

codeant-ai Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Feb 4, 2026
@codeant-ai

codeant-ai Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

CodeAnt AI finished reviewing your PR.

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown

⚠️ Object Smoke Tests & Coverage Report

Test Results

✅ All smoke tests passed

Coverage Results

Metric Coverage Required Status
Functions 97.48% 100%
Lines 86.49% - ℹ️
Branches 65.75% - ℹ️
Statements 85.19% - ℹ️

Coverage Requirement: 100% function coverage (all public methods must be called in smoke tests)

⚠️ Some object methods are not covered in smoke tests. Please add tests that call all public methods.

View detailed coverage report
File Functions Lines Branches
src/sdk.ts ❌ 96.15% 81.41% 70.83%
src/sdk/agent.ts ✅ 100% 100% 100%
src/sdk/blueprint.ts ✅ 100% 100% 80%
src/sdk/devbox.ts ✅ 100% 91.81% 96.96%
src/sdk/execution-result.ts ✅ 100% 92.68% 70.83%
src/sdk/execution.ts ✅ 100% 94.11% 83.33%
src/sdk/gateway-config.ts ✅ 100% 100% 100%
src/sdk/network-policy.ts ✅ 100% 100% 100%
src/sdk/scenario-run.ts ❌ 92.85% 75% 50%
src/sdk/scenario.ts ❌ 85.71% 91.66% 100%
src/sdk/scorer.ts ❌ 87.5% 93.33% 100%
src/sdk/snapshot.ts ✅ 100% 100% 100%
src/sdk/storage-object.ts ✅ 100% 80% 48.93%

📋 View workflow run

@dines-rl
dines-rl enabled auto-merge (squash) February 4, 2026 23:42
@dines-rl
dines-rl requested review from alb-rl and tode-rl February 4, 2026 23:44
@dines-rl
dines-rl merged commit ed48249 into main Feb 4, 2026
9 checks passed
@dines-rl
dines-rl deleted the network-config-e2e branch February 4, 2026 23:45
@stainless-app stainless-app Bot mentioned this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants