Merge branch 'renovate/main-openstack' of https://github.com/vexxhost/atmosphere into renovate/main-openstack

Change-Id: I8ee8278c088f4f95b5fc3e8f655ef3dcd8cd844c
This commit is contained in:
Dong Ma committed 2025-04-16 14:51:52 +00:00
commit f0273060e6
8 files changed
+79 -15

No files matched your search

@@ -0,0 +1,2 @@
backport
[Bb]ackports
+1
View File
@@ -1,6 +1,7 @@
StylesPath = .github/styles
MinAlertLevel = suggestion
Packages = Microsoft
Vocab = Base
[*.{rst,yaml}]
BasedOnStyles = Vale, Microsoft
+70 -9
View File
@@ -1,16 +1,77 @@
#######################
Developer Documentation
#######################
=======================
Developer documentation
=======================
Patches
=======
Images
------
Solving conflicts
~~~~~~~~~~~~~~~~~
Renovate is a tool which keeps dependencies automatically updated in Atmosphere.
When it proposes an update, it's possible that one of the patches pushed upstream
has merged or it does no longer apply cleanly. You may see a message like this:
.. code-block:: console
ERROR: process "/bin/sh -c git -C /src/ovn-bgp-agent apply --verbose /patches/ovn-bgp-agent/*" did not complete successfully: exit code: 1
In this case, you will need to re-base the patch on top of the latest upstream
commit. You can start by cloning the repository and checking out the branch
which you can find in the ``Dockerfile`` of the image. This example uses the
``ovn-bgp-agent`` image, but the same applies to all other images.
.. code-block:: console
pushd $(mktemp -d)
git clone https://opendev.org/openstack/ovn-bgp-agent.git .
git switch master
Now, you can apply the patches to the repository. You can find the command used
to apply patches in the ``Dockerfile`` of the image. In this case, it's:
.. code-block:: console
git am -3 ~/src/github.com/vexxhost/atmosphere/images/ovn-bgp-agent/patches/ovn-bgp-agent/*.patch
At this point, you'll likely see a conflict, you can proceed to solve it. Once you
have solved it, you can run `git add <file>` to mark the file as resolved. Once there
are no longer any conflicts to solve, you can run:
.. code-block:: console
git am --continue
Once you're complete, you can delete all the old patches and create a new patch
series. You can do this by running:
.. code-block:: console
rm ~/src/github.com/vexxhost/atmosphere/images/ovn-bgp-agent/patches/ovn-bgp-agent/*.patch
git format-patch -o ~/src/github.com/vexxhost/atmosphere/images/ovn-bgp-agent/patches/ovn-bgp-agent origin/master
Also, you'll need to update the ``Dockerfile`` to point to the new base
commit which will usually be an ``ARG`` ending with ``_GIT_REF``. You can find
the commit to use by running:
.. code-block:: console
git rev-parse origin/master
You can then copy the commit hash and replace the ``ARG`` in the ``Dockerfile``
and push the changes to your branch and create a pull request.
*********
Backports
*********
=========
In order to backport a change, you can simply add the appropriate label to the
To backport a change, you can simply add the appropriate label to the
pull request, the pattern is ``backport <branch>``. For example, if you want to
backport a change to the ``stable/2023.1`` branch, you would add the label
``backport stable/2023.1``. The backport will be created automatically once the
pull request is merged.
``backport stable/2023.1``. GitHub Actions will generate a pull request
automatically once the pull request merges.
If you need to run a backport after a pull request has been merged, you can do so
If you need to run a backport after a pull request has merged, you can do so
by adding the labels and then adding a comment with the text ``/backport``.
+1 -1
View File
@@ -8,7 +8,7 @@ ARG GLANCE_GIT_REF=2b32a2e32c315aa012f1831f9511aad36f830c84
ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
RUN git -C /src/glance fetch --unshallow
# renovate: name=openstack/glance_store repo=https://opendev.org/openstack/glance_store.git branch=master
ARG GLANCE_STORE_GIT_REF=d9970a3354acfe1cea632c08bdbe1c120dc1127f
ARG GLANCE_STORE_GIT_REF=2fd7875820a531d26336a317d5c0841d452bc6f9
ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#${GLANCE_STORE_GIT_REF} /src/glance_store
RUN git -C /src/glance_store fetch --unshallow
RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
+1 -1
View File
@@ -4,7 +4,7 @@
FROM openstack-venv-builder AS build
# renovate: name=openstack/ironic repo=https://opendev.org/openstack/ironic.git branch=master
ARG IRONIC_GIT_REF=621338e9677cc38a8b206d5f8159cfee0aea1112
ARG IRONIC_GIT_REF=9f71d03a3802dfc59af5dece14b7583d9642e8e7
ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic
RUN git -C /src/ironic fetch --unshallow
RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
+2 -2
View File
@@ -4,13 +4,13 @@
FROM openstack-venv-builder AS build
# renovate: name=openstack/neutron repo=https://opendev.org/openstack/neutron.git branch=master
ARG NEUTRON_GIT_REF=1dff1c2e888820528fd50505d7b60b3452263ac9
ARG NEUTRON_GIT_REF=f511ef918e1a3a60bbc1dec5edbec35ddf736223
ADD --keep-git-dir=true https://opendev.org/openstack/neutron.git#${NEUTRON_GIT_REF} /src/neutron
RUN git -C /src/neutron fetch --unshallow
COPY patches/neutron /patches/neutron
RUN git -C /src/neutron apply --verbose /patches/neutron/*
# renovate: name=openstack/neutron-vpnaas repo=https://opendev.org/openstack/neutron-vpnaas.git branch=master
ARG NEUTRON_VPNAAS_GIT_REF=518736c0a48825ea39513eb7e0d7839d5864c8eb
ARG NEUTRON_VPNAAS_GIT_REF=0d94efd01f38d61007f5fd828e940c7f9f216866
ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas.git#${NEUTRON_VPNAAS_GIT_REF} /src/neutron-vpnaas
RUN git -C /src/neutron-vpnaas fetch --unshallow
# renovate: name=openstack/networking-baremetal repo=https://opendev.org/openstack/networking-baremetal.git branch=master
+1 -1
View File
@@ -4,7 +4,7 @@
FROM openstack-venv-builder AS build
# renovate: name=openstack/ovn-bgp-agent repo=https://opendev.org/openstack/ovn-bgp-agent.git branch=master
ARG OVN_BGP_AGENT_GIT_REF=7bea7a3a00968b51dfd5cd9a6fd9a4bee168f5ab
ARG OVN_BGP_AGENT_GIT_REF=b75b569447c8b1b3c11d36122ce1231f54197e92
ADD --keep-git-dir=true https://opendev.org/openstack/ovn-bgp-agent.git#${OVN_BGP_AGENT_GIT_REF} /src/ovn-bgp-agent
RUN git -C /src/ovn-bgp-agent fetch --unshallow
COPY patches/ovn-bgp-agent /patches/ovn-bgp-agent
+1 -1
View File
@@ -123,7 +123,7 @@
pre-run: zuul.d/playbooks/molecule-aio/pre.yml
post-run: zuul.d/playbooks/molecule-aio/post.yml
roles:
- zuul: openstack/openstack-helm-infra
- zuul: openstack/openstack-helm
- job:
name: atmosphere-molecule-aio-keycloak