functional-networking #643
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functional testing for networking | |
name: functional-networking | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/functional-networking.yml' | |
- 'go.mod' | |
- 'openstack/**networking**' | |
- 'CHANGELOG.md' | |
- 'scripts/*' | |
schedule: | |
- cron: '0 0 */3 * *' | |
jobs: | |
functional-basic: | |
strategy: | |
fail-fast: false | |
matrix: | |
name: ["master"] | |
openstack_version: ["master"] | |
ubuntu_version: ["22.04"] | |
include: | |
- name: "caracal" | |
openstack_version: "stable/2024.1" | |
ubuntu_version: "22.04" | |
- name: "bobcat" | |
openstack_version: "stable/2023.2" | |
ubuntu_version: "22.04" | |
- name: "antelope" | |
openstack_version: "stable/2023.1" | |
ubuntu_version: "22.04" | |
runs-on: ubuntu-${{ matrix.ubuntu_version }} | |
name: networking on OpenStack ${{ matrix.name }} with defaults and run basic acceptance tests | |
steps: | |
- name: Checkout TPO | |
uses: actions/checkout@v4 | |
- name: Deploy devstack | |
uses: EmilienM/devstack-action@v0.15 | |
with: | |
branch: ${{ matrix.openstack_version }} | |
conf_overrides: | | |
Q_ML2_PLUGIN_EXT_DRIVERS=qos,port_security,dns_domain_keywords | |
enable_plugin neutron-dynamic-routing https://github.com/openstack/neutron-dynamic-routing ${{ matrix.openstack_version }} | |
enabled_services: 'neutron-dhcp,neutron-dns,neutron-qos,neutron-segments,neutron-trunk,neutron-uplink-status-propagation,neutron-network-segment-range,neutron-port-forwarding' | |
- name: Checkout go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.20' | |
- name: Run TPO acceptance tests | |
run: ./scripts/acceptancetest.sh | |
env: | |
DEVSTACK_PATH: ${{ github.workspace }}/devstack | |
ACCEPTANCE_TESTS_FILTER: 'networking' | |
OS_BRANCH: ${{ matrix.openstack_version }} | |
- name: Generate logs on failure | |
run: ./scripts/collectlogs.sh | |
if: failure() | |
- name: Upload logs artifacts on failure | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: functional-basic-${{ matrix.name }} | |
path: /tmp/devstack-logs/* |