Migrate YAML workflow Examples to DSL

Aperta
#570 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
testing

Direzione di ricerca

Inizia da test/dsl/support/functional_test.rb e test/dsl/functional/roast_dsl_examples_test.rb per comprendere l’infrastruttura VCR esistente della DSL e i casi di test. Poi esamina dsl/simple_chat.rb e dsl/simple_agent.rb. Il lavoro è considerato completato quando gli esempi di chat e agent hanno una copertura funzionale, le interazioni HTTP vengono registrate o riprodotte e i test vengono eseguiti in modo affidabile in CI senza dipendenze esterne.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

DSL

This issue tracks adding VCR (Video Cassette Recorder) infrastructure to DSL functional tests, enabling HTTP request recording/playback for testing workflows that make API calls without requiring real credentials or incurring costs.

Context

Currently, DSL functional tests only cover workflows that don't make HTTP requests (like loops, conditionals, file operations). We need VCR support to test chat and agent workflows that interact with external APIs.

Implementation Tasks

✅ Core VCR Infrastructure
  • Implement VCR for the DSL functional tests (refer to how @dersam set it up for the legacy functional tests in test/support/functional_test.rb, but leave that setup as-is)
🔄 Basic Chat Workflow Tests
  • Add the dsl/simple_chat.rb example DSL workflow to the functional test suite
  • Write some additional example workflows that use chat in more interesting, complex, real-world ways, with VCR to run them in tests
🔄 Agent Workflow Support
  • Figure out a good way to mock agent calls in functional tests
  • Add a functional test case for dsl/simple_agent.rb using that mocking setup
  • Write some additional example workflows that use agent (perhaps in combination with chat) and hook them up as functional tests

Success Criteria

  • DSL functional tests can record/playback HTTP requests for chat workflows
  • Agent workflows can be tested with appropriate mocking
  • New example workflows demonstrate real-world usage patterns
  • All tests run reliably in CI without external dependencies

Related Files

  • test/dsl/support/functional_test.rb - DSL VCR infrastructure
  • test/dsl/functional/roast_dsl_examples_test.rb - Test cases
  • dsl/simple_chat.rb - Basic chat example
  • dsl/simple_agent.rb - Basic agent example
Lingua principale
Ruby
Stelle
1.3k
Fork
80
Merge medio
21m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/roast

Tutte le issue di Shopify/roast

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.