Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[v2] Use Makefile for CI jobs #3367

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

Merged
merged 17 commits into from
May 16, 2025
Merged
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
16 changes: 5 additions & 11 deletions .github/workflows/functional-baremetal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**baremetal**'
- '.github/workflows/functional-baremetal.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -28,18 +29,10 @@ jobs:
steps:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Workaround for grub-efi-amd64-signed
run: sudo rm /var/cache/debconf/config.dat
shell: bash
if: matrix.ubuntu_version == '20.04'
- name: Ensure update and upgrade
run: sudo apt update && sudo apt -y upgrade
shell: bash
if: matrix.ubuntu_version == '20.04'
- name: Work around broken dnsmasq
run: sudo apt-get purge -y dnsmasq-base
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand Down Expand Up @@ -82,10 +75,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-baremetal
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/baremetal/..."
OS_BRANCH: ${{ matrix.openstack_version }}
USE_SYSTEM_SCOPE: true
- name: Generate logs on failure
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/functional-basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
enabled_services: 's-account,s-container,s-object,s-proxy,${{ matrix.additional_services }}'
Expand All @@ -41,10 +41,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-basic
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: './internal/acceptance/openstack'
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-blockstorage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**blockstorage**'
- '.github/workflows/functional-blockstorage.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -40,10 +41,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-blockstorage
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/blockstorage/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**compute**'
- '.github/workflows/functional-compute.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -40,10 +41,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-compute
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/compute/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-containerinfra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**containerinfra**'
- '.github/workflows/functional-containerinfra.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -61,10 +62,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-containerinfra
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/containerinfra/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/functional-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: functional-dns
on:
pull_request:
paths:
- '**openstack/dns**'
- '**functional-dns.yaml'
- '**dns**'
- '.github/workflows/functional-dns.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -49,10 +49,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-dns
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/dns/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/functional-fwaas_v2.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# TODO(stephenfin): neutron-fwaas may support OVN now. If so, we can combine
# this job with the functional-networking job. See [1]
#
# [1] https://bugs.launchpad.net/neutron/+bug/1971958
name: functional-fwaas_v2
on:
pull_request:
paths:
- '**networking/v2/extensions/fwaas_v2**'
- '.github/workflows/functional-fwaas_v2.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -28,8 +33,16 @@ jobs:
steps:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Create additional neutron policies
run: |
mkdir /tmp/neutron-policies
cat << EOF >> /tmp/neutron-policies/port_binding.yaml
---
"create_port:binding:profile": "rule:admin_only or rule:service_api"
"update_port:binding:profile": "rule:admin_only or rule:service_api"
EOF
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -39,16 +52,21 @@ jobs:
Q_ML2_PLUGIN_TYPE_DRIVERS=flat,gre,vlan,vxlan
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_TUNNEL_TYPES=vxlan,gre

[[post-config|\$NEUTRON_CONF]]
[oslo_policy]
policy_dirs = /tmp/neutron-policies
enabled_services: 'q-svc,q-agt,q-dhcp,q-l3,q-meta,q-fwaas-v2,-cinder,-horizon,-tempest,-swift,-c-sch,-c-api,-c-vol,-c-bak,-ovn,-ovn-controller,-ovn-northd,-q-ovn-metadata-agent,${{ matrix.additional_services }}'
- name: Checkout go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-networking
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/networking/v2/extensions/fwaas_v2/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**identity**'
- '.github/workflows/functional-identity.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
enabled_services: "${{ matrix.additional_services }}"
Expand All @@ -38,10 +39,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-identity
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/identity/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**image**'
- '.github/workflows/functional-image.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
enabled_services: "${{ matrix.additional_services }}"
Expand All @@ -38,10 +39,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-image
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/image/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-keymanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**keymanager**'
- '.github/workflows/functional-keymanager.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -48,10 +49,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-keymanager
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/keymanager/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/functional-loadbalancer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- '**loadbalancer**'
- '.github/workflows/functional-loadbalancer.yaml'
schedule:
- cron: '0 0 */3 * *'
jobs:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
- name: Checkout Gophercloud
uses: actions/checkout@v4
- name: Deploy devstack
uses: gophercloud@[email protected]
uses: gophercloud/[email protected]
with:
branch: ${{ matrix.openstack_version }}
conf_overrides: |
Expand All @@ -49,10 +50,11 @@ jobs:
with:
go-version: '^1.22'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
run: |
source ${{ github.workspace }}/script/stackenv
make acceptance-loadbalancer
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
PACKAGE: "./internal/acceptance/openstack/loadbalancer/..."
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
Expand Down
Loading
Loading