Skip to content
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

Our CI pipeline should trigger the benchmark pipeline #3966

Closed
1 task done
waynehamadi opened this issue May 7, 2023 · 0 comments
Closed
1 task done

Our CI pipeline should trigger the benchmark pipeline #3966

waynehamadi opened this issue May 7, 2023 · 0 comments

Comments

@waynehamadi
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Summary 💡

The ci.yml file runs our tests without api keys. If someone changed the prompt and an API key is needed, we want to run our benchmark pipeline.

Step 1: mark all the tests that require an API key (with the pytest mark decorator)

Step 2: add a pytest plugin that will inform us if any of these marked tests has failed:

Step 3: update the workflow.yaml in order to use the plugin when running pytest. If tests marked as requiring an api key succeed, it means no prompt change happened. The workflow passes. Otherwise, trigger the benchmark workflow and make the current workflow fail.

Step 4: create a new workflow called benchmarks. This benchmark will systematically fail for now.

Examples 🌈

No response

Motivation 🔦

No response

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

No branches or pull requests

1 participant