Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions lib/aio/testingfarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ async def submit_job(
job: JobSpecification | JsonObject, # TODO: PEP 728
*,
git_url_ref: tuple[str, str] | None = None,
compose: str = 'Fedora-Rawhide',
compose: str = 'Fedora-44',
) -> str:
"""Submit a job to Testing Farm for remote execution.

Args:
ctx: JobContext with configuration (will be serialized)
job: Job specification as JSON object
git_url_ref: Git repository URL and ref (default: from @{upstream})
compose: Fedora compose to use (default: Fedora-Rawhide)
compose: Fedora compose to use (default: Fedora-44)

Returns:
Testing Farm request ID
Expand Down Expand Up @@ -150,19 +150,8 @@ async def submit_job(
'secrets': {
'JOB_RUNNER_CONFIG_JSON': config_json,
},
'hardware': {
'virtualization': {
'is-virtualized': True,
'is-supported': True,
}
},
}
],
'settings': {
'pipeline': {
'timeout': 120,
}
},
}

url = f'{self.api_url}/requests'
Expand Down
10 changes: 9 additions & 1 deletion plans/job-runner.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
summary: Run job-runner task remotely
provision:
arch: x86_64
image: Fedora-44
hardware:
memory: ">= 4 GB"
virtualization:
is-supported: true

prepare:
how: install
package:
Expand All @@ -16,4 +24,4 @@ execute:
/job-runner:
summary: Run job-runner task
test: ../job-runner json "$JOB_JSON"
duration: 2h
duration: 4h
Loading