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

replace BASALT mentions by SLCC #949

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
2 changes: 2 additions & 0 deletions .github/workflows/cleanup-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- 6
- 5
- Tumbleweed
- SLCC-free
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that naming seems outdated

- SLCC-paid

steps:
# we need all branches for the build checks
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/obs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- 6
- 5
- Tumbleweed
- SLCC-free
- SLCC-paid

steps:
# we need all branches for the build checks
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-cr-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- 6
- 5
- Tumbleweed
- SLCC-free
- SLCC-paid

steps:
# we need all branches for the build checks
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-deployment-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- 6
- 5
- Tumbleweed
- SLCC-free
- SLCC-paid

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ API Documentation
.. automodule:: staging.build_result
:members:
:undoc-members:


:py:mod:`staging.project_setup` module
--------------------------------------

.. automodule:: staging.project_setup
:members:
:undoc-members:
2 changes: 2 additions & 0 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Contents

staging_bot

new_codestream

api

Indices and tables
Expand Down
56 changes: 56 additions & 0 deletions source/new_codestream.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Creating a new codestream
=========================

To create a new codestream follow these steps:

1. Create a deployment branch. It must have the name
:py:attr:`~staging.bot.StagingBot.deployment_branch_name` and should contain
only a :file:`_config` file with the prjconf of the target project (usually
you can take the prjconf from the previous service pack, if applicable).

2. Create the target project on OBS. This can be achieved via the bot command
``setup_obs_project``:

.. code-block:: shell

$ export OSC_USER=$MY_USER
$ export OSC_PASSWORD=$MY_PASS
$ poetry run scratch-build-bot \
--os-version $CODE_STREAM \
--branch-name="doesNotMatter" \
-vvvv setup_obs_project

3. Add the new code stream to the github action files to the ``os_version``
list:
:file:`.github/workflows/obs_build.yml`
:file:`.github/workflows/update-deployment-branches.yml`
:file:`.github/workflows/update-cr-project.yml`
:file:`.github/workflows/cleanup-staging.yml`


SLCC specific steps
-------------------

For SLCC we need to build the FTP trees (= repositories) ourselves. For that we
must create the ``000*`` packages in the checked out project:

.. code-block:: shell

$ cd devel:BCI:SLCC:$stream/

$ osc mkpac 000product
A 000product

$ osc mkpac 000release-packages
A 000release-packages

$ osc mkpac 000package-groups
A 000package-groups


We only have to touch ``000package-groups`` directly, the remaining two are
auto-generated using `pkglistgen
<https://github.com/openSUSE/openSUSE-release-tools/blob/master/docs/pkglistgen.md>`_.


python3 ./pkglistgen.py --verbose -A https://api.opensuse.org update_and_solve -p devel:BCI:SLCC:dynamic-developer -s target
Loading
Loading