File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,15 @@ async def _create_staging_proj():
278278 elif action == "query_build_result" :
279279
280280 async def print_build_res ():
281- return render_as_markdown (await bot .fetch_build_results ())
281+ prefix = ""
282+ # we don't support BCI tests for Tumbleweed yet…
283+ if bot .os_version != OsVersion .TUMBLEWEED :
284+ prefix = f"""You can run the BCI test suite against this PR via:
285+ ```ShellSession
286+ $ OS_VERSION=15.{ bot .os_version } TARGET=custom BASEURL={ bot .staging_project_registry_base_url } tox -e $ENV -- -n auto
287+ ```
288+ """
289+ return prefix + render_as_markdown (await bot .fetch_build_results ())
282290
283291 coro = print_build_res ()
284292
Original file line number Diff line number Diff line change @@ -1044,6 +1044,18 @@ async def fetch_build_results(self) -> list[RepositoryBuildResult]:
10441044 (await self ._run_cmd (self ._osc_fetch_results_cmd ())).stdout
10451045 )
10461046
1047+ @property
1048+ def staging_project_registry_base_url (self ) -> str :
1049+ """Returns the base url to the containers in the staging project on
1050+ OBS. This url is missing the repository name and the actual container
1051+ tag, but it can be used to plug the staging project directly into
1052+ BCI-tests.
1053+
1054+ """
1055+ return "registry.opensuse.org/" + self .staging_project_name .lower ().replace (
1056+ ":" , "/"
1057+ )
1058+
10471059 async def force_rebuild (self ) -> str :
10481060 """Deletes all binaries of the project on OBS and force rebuilds everything."""
10491061 await self ._run_cmd (
You can’t perform that action at this time.
0 commit comments