Skip to content

Complete hard-deprecation codemod migrations#1654

Merged
christso merged 3 commits into
mainfrom
promptfoo-codemod-remaining
Jul 4, 2026
Merged

Complete hard-deprecation codemod migrations#1654
christso merged 3 commits into
mainfrom
promptfoo-codemod-remaining

Conversation

@christso

@christso christso commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Completes the remaining Promptfoo-aligned hard-deprecation codemod pass for av-kfik.15.2.

  • Generalizes the direct-input codemod into migrate-hard-deprecations and covers concurrency placement, env template syntax, preprocessors/postprocess, artifact path keys, and workspace isolation vocabulary.
  • Hard-rejects removed authored keys with transform/evaluate_options guidance in schema, validator, YAML parser, target validation, and target runtime env handling.
  • Migrates repo-owned examples/templates/current docs to {{ env.* }}, evaluate_options.max_concurrency, workspace.scope, and Promptfoo-compatible transform.
  • Refreshes the eval-writer schema and updates focused tests for codemod output and hard-reject behavior.

Validation

  • bun run generate:schema from packages/core
  • bun test scripts/migrate-hard-deprecations.test.ts packages/core/test/evaluation/validation/eval-file-schema.test.ts packages/core/test/evaluation/validation/eval-validator.test.ts packages/core/test/evaluation/validation/targets-validator.test.ts packages/core/test/evaluation/preprocessors-yaml.test.ts packages/core/test/evaluation/providers/targets.test.ts packages/core/test/evaluation/providers/fallback-targets.test.ts packages/core/test/evaluation/providers/cli-schema.test.ts packages/core/test/evaluation/providers/targets-cwd-fallback.test.ts packages/core/test/evaluation/source-traceability.test.ts packages/core/test/evaluation/loaders/config-loader.test.ts
  • bun run validate:examples (108 valid, 0 invalid)
  • bun run build
  • git diff --check

Notes

  • GitHub Actions ${{ ... }} syntax remains intentionally untouched.
  • Versioned v4.42 docs and migration/historical references are left as historical/deferred cleanup; av-kfik.34.4 remains open for broader SDK/docs/public-surface cleanup.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 17720bb
Status: ✅  Deploy successful!
Preview URL: https://bc8a20f8.agentv.pages.dev
Branch Preview URL: https://promptfoo-codemod-remaining.agentv.pages.dev

View logs

@christso christso marked this pull request as ready for review July 4, 2026 19:30
@christso christso merged commit f0f768f into main Jul 4, 2026
8 checks passed
@christso christso deleted the promptfoo-codemod-remaining branch July 4, 2026 19:30
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