File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 (
@@ -1688,7 +1700,15 @@ async def _create_staging_proj():
16881700 elif action == "query_build_result" :
16891701
16901702 async def print_build_res ():
1691- return render_as_markdown (await bot .fetch_build_results ())
1703+ prefix = ""
1704+ # we don't support BCI tests for Tumbleweed yet…
1705+ if bot .os_version != OsVersion .TUMBLEWEED :
1706+ prefix = f"""You can run the BCI test suite against this PR via:
1707+ ```ShellSession
1708+ $ OS_VERSION=15.{ bot .os_version } TARGET=custom BASEURL={ bot .staging_project_registry_base_url } tox -e $ENV -- -n auto
1709+ ```
1710+ """
1711+ return prefix + render_as_markdown (await bot .fetch_build_results ())
16921712
16931713 coro = print_build_res ()
16941714
You can’t perform that action at this time.
0 commit comments