Repository navigation
Add Testing Farm integration with TMT metadata and GitHub Actions #242
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| name: Testing Farm | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| issue_comment: | ||
| types: [created] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| statuses: write | ||
|
|
||
| concurrency: | ||
| group: "testing-farm-${{ github.event.issue.number }}" | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
|
phracek marked this conversation as resolved.
|
||
| fail-fast: false | ||
| matrix: | ||
| tox_env: [py311, py312, py313, py314] | ||
| steps: | ||
| - uses: sclorg/testing-farm-as-github-action@v4 | ||
|
phracek marked this conversation as resolved.
|
||
| with: | ||
|
phracek marked this conversation as resolved.
|
||
| api_key: ${{ secrets.TF_PUBLIC_API_KEY }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Do not schedule secret-dependent tests from fork PR runs. When a PR comes from a fork, GitHub withholds 🤖 Prompt for AI Agents |
||
| compose: Fedora-45 | ||
| tmt_plan_regex: ".*" | ||
| variables: "TOX_ENV=${{ matrix.tox_env }}" | ||
| update_pull_request_status: "true" | ||
| pull_request_status_name: "Testing Farm - ${{ matrix.tox_env }}" | ||
| create_issue_comment: "true" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Key concurrency by the PR number.
On the current
pull_requesttrigger,github.event.issue.numberis absent. GitHub evaluates that property to an empty string. Every PR therefore uses the same concurrency group, and a new PR run cancels another PR’s tests. Usegithub.event.pull_request.numberif this trigger remains. (docs.github.com)🤖 Prompt for AI Agents