Skip to content

Add Support for Testing Golden Snapshots - #939

Merged
Andriy Knysh (aknysh) merged 34 commits into
mainfrom
snapshotting
Jan 18, 2025
Merged

Andriy Knysh (aknysh) merged 34 commits into
mainfrom
snapshotting

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Jan 14, 2025 •

Copy link
Copy Markdown
Member

what

  • Genereate snapshots locally & commit them with the -regenerate-snapshots argument
  • Test for changes by comparison golden snapshots with output
  • Support TTY emulation (pty)
  • Add support for !not tag to negate conditions
  • Add a JSON schema for the test cases (to avoid silent failures)

why

  • Too hard to add thorough tests for command line invocations

@osterman Erik Osterman (Cloud Posse) (osterman) added the no-release Do not create a new release (wait for additional code changes) label Jan 14, 2025
@mergify

mergify Bot commented Jan 14, 2025

Copy link
Copy Markdown
Contributor

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify Bot added the needs-cloudposse Needs Cloud Posse assistance label Jan 14, 2025
Comment thread tests/test-cases/core.yaml Resolved
@mergify

mergify Bot commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jan 17, 2025
@mergify mergify Bot removed the conflict This PR has conflicts label Jan 17, 2025

@aknysh Andriy Knysh (aknysh) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@aknysh
Andriy Knysh (aknysh) merged commit e98c3aa into main Jan 18, 2025
@aknysh
Andriy Knysh (aknysh) deleted the snapshotting branch January 18, 2025 03:16
@mergify mergify Bot removed the needs-cloudposse Needs Cloud Posse assistance label Jan 18, 2025
@github-actions

Copy link
Copy Markdown

These changes were released in v1.151.0.

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

Labels

no-release Do not create a new release (wait for additional code changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants