Skip to content

Conversation

@sdowell
Copy link
Contributor

@sdowell sdowell commented Oct 20, 2025

This change includes some minor cleanup and refactor of the chrome sandbox test.

  • return error instead of calling Fatal in nested helper functions to help the control flow
  • use the testing logger so that logs are properly formatted
  • consolidate test utilities and remove unused functions

@netlify
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for agent-sandbox canceled.

Name Link
🔨 Latest commit d100738
🔍 Latest deploy log https://app.netlify.com/projects/agent-sandbox/deploys/68f6ca553951020008547f04

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sdowell
Once this PR has been reviewed and has the lgtm label, please assign justinsb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 20, 2025
This change includes some minor cleanup and refactor of the chrome
sandbox test.

- return error instead of calling Fatal in nested helper functions to
  help the control flow
- use the testing logger so that logs are properly formatted
- consolidate test utilities and remove unused functions
@sdowell sdowell force-pushed the test-chrome-sandbox branch from 90ca254 to d100738 Compare October 20, 2025 23:48
{
Name: "chrome-sandbox",
// might be nice to remove the IMAGE_TAG env var so this is easier to run from IDE
Image: fmt.Sprintf("kind.local/chrome-sandbox:%s", os.Getenv("IMAGE_TAG")),
Copy link
Contributor

Choose a reason for hiding this comment

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

can be done by adding a well known tag as part of build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed that would make sense as an approach. I'd suggest we address it as a separate change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants