Skip to content

chore: update seeder for testing #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025
Merged

chore: update seeder for testing #1123

merged 1 commit into from
May 5, 2025

Conversation

jsantell
Copy link
Collaborator

@jsantell jsantell commented Apr 29, 2025

  • Add a flag for skipping verification for smoke tests (--no-verify)
    • Lazily load openai dependency as to not require credentials
    • Only use browser during verification
  • Add a flag for skipping report generation (--no-report)
  • Return an error exit code if any verification fails (unless --no-verify)
  • Connect a single charm gen to a parallel integration test to ensure seeder runs properly. No verification is done.
  • Align shared usage of utils between seeder/jumble-integration

@jsantell
Copy link
Collaborator Author

Seeder CI is now (correctly) failing when generating an error (this is due to needing LLM cache)

@jsantell jsantell marked this pull request as ready for review April 30, 2025 20:54
Copy link

@mrge-io mrge-io bot left a comment

Choose a reason for hiding this comment

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

mrge found 8 issues across 16 files. View them in mrge.io

* Add a flag for skipping verification for smoke tests (`--no-verify`)
  * Lazily load `openai` dependency as to not require credentials
  * Only use browser during verification
* Add a flag for skipping report generation (`--no-report`)
* Return an error exit code if any verification fails (unless
  `--no-verify`)
* Connect a single charm gen to a parallel integration test to ensure seeder runs properly. No verification is done.
* Align shared usage of utils between seeder/jumble-integration
import { createSession, Identity } from "@commontools/identity";
import { CharmManager } from "@commontools/charm";
import { sleep } from "@commontools/utils/sleep";
Copy link
Contributor

Choose a reason for hiding this comment

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

this one is funny since it is almost as long as the code required to define sleep 🤣

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

💯

await waitForSelectorClick(
page,
"button[aria-label='register-with-passphrase']",
// Check if we need to select a method first (in case of multiple auth methods available)
Copy link
Contributor

Choose a reason for hiding this comment

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

love that these are sharing a codepath now!

@@ -19,50 +19,6 @@ export const ensureReportDir = async (name: string) => {
}
};

// Helper function to group results by scenario
function groupResultsByScenario(
Copy link
Contributor

Choose a reason for hiding this comment

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

thx for deleting ... left over from the vibecoded reports

@@ -13,5 +13,6 @@ deno check \
jumble \
memory \
runner \
seeder \
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jsantell jsantell merged commit 69f6d2b into main May 5, 2025
6 checks passed
@jsantell jsantell deleted the seeder-ci-2 branch May 5, 2025 18:31
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.

2 participants