-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: cloud-init Binary: cloud-init Architecture: all Version: 24.2-0ubuntu1~20.04.1 Maintainer: Ubuntu Developers <[email protected]> Homepage: https://cloud-init.io/ Standards-Version: 4.4.1 Vcs-Browser: https://github.com/canonical/cloud-init/tree/ubuntu/devel Vcs-Git: https://github.com/canonical/cloud-init -b ubuntu/devel Build-Depends: debhelper (>= 9.20160709), dh-python, iproute2, po-debconf, python3, python3-configobj, python3-debconf, python3-jinja2, python3-jsonpatch, python3-jsonschema, python3-mock, python3-oauthlib, python3-pytest, python3-pytest-mock, python3-requests, python3-serial, python3-setuptools, python3-yaml, python3-responses, python3-passlib Package-List: cloud-init deb admin optional arch=all Checksums-Sha1: 97e12cdc751591126302e68bd0a9c97260333c89 1892095 cloud-init_24.2.orig.tar.gz 75083241aa06eb8c04d28c7f88ab66e47f77dfbf 98108 cloud-init_24.2-0ubuntu1~20.04.1.debian.tar.xz Checksums-Sha256: 5e0a025f2d008498c92632a45937bf0b722a05cea9c21b46b353898a0faaa565 1892095 cloud-init_24.2.orig.tar.gz 777c3ab457d9e5f7bf8cb2c2904bf933f65164e8b372a102552852fa4028eb26 98108 cloud-init_24.2-0ubuntu1~20.04.1.debian.tar.xz Files: a2230a732e8a7f2424ae253694735399 1892095 cloud-init_24.2.orig.tar.gz 7ad35646a461e14403c53ee80dff98a3 98108 cloud-init_24.2-0ubuntu1~20.04.1.debian.tar.xz Python-Version: all -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE4lRR4CIbV3Pev/F47NrLFgmVrYkFAmaQZdAACgkQ7NrLFgmV rYnohg//RJrb/Q04yQsvmUGY0gtcn/2ALk9FljtI+4V67kGeJEWAxBXCFdh540L7 Y4DCDDXhYPTTvbxQM/pHFWcQKpDSXZWpyH//ysKWSOe0XX+2AM2Wdv3Tuzq/jAk1 dVi2hRt22nihbye7u4+oGWOeBvE3O8AixqwmofISvrKgHp8Rv20Hmj/QbQ0LF86U YrV6x2eA22qqGHbnmuU36ezgpDdL66onpmTb8AABpyDoF2Nvu0JakX0x/srPa+8h RlL/EdxinnIz6iqFjpR47dsBCTNO2Uhe+LPmKRsshq/VfILdhZVVUMIMysU+TlGz RYeDuL83zFRpu0Ui3SZUgK3aqWMFITiSfoTYNprzef/PZoy8o87GCVRINtmZxQMP UjHmtS+txRsi7STTk3RZEMBFiStbaTkGUpK+TNT5FCMdfVMNp1023sL3+0elYwFj aHLdfGsVgHCHNoG2eDRQOu7f1/F29ZiAXcgqYgWLkrZ37TBCRSuZ6kYfDeZUErHh SmJUtKNxI2VPyqxw/R13Kz2mAR7SZ9IaFE8GCj1bLOQAHWhzWqwfGglVrDIRKOpy pvUsvGHWSlZUK4SIP6hvLCusbmItQh9hAzShw+h6VBFadW9pSd/q21Vfg3/9Wg9R 3QDhpJD+Uo3l3APb1TT4icvmC2/ePzaw/zGqIN2kxTes+tsdwME= =sRkA -----END PGP SIGNATURE-----
- Loading branch information
Delphix Engineering
committed
Aug 31, 2024
1 parent
aff1f6d
commit ff91f05
Showing
619 changed files
with
29,123 additions
and
32,898 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
name: Alpine Unittests | ||
|
||
on: | ||
pull_request: | ||
branches-ignore: | ||
- 'ubuntu/**' | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: 'ci-${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: sh -ex {0} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
# Fetch all tags for tools/read-version | ||
fetch-depth: 0 | ||
|
||
- name: Setup LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: latest/candidate | ||
|
||
- name: Create alpine container | ||
# the current shell doesn't have lxd as one of the groups | ||
# so switch groups to run lxd commands | ||
run: lxc launch images:alpine/edge alpine | ||
|
||
- name: Check networking (for debugging) | ||
run: | | ||
lxc exec alpine -- ping -c 1 google.com || true | ||
lxc exec alpine -- ping -c 1 dl-cdn.alpinelinux.org || true | ||
lxc exec alpine -- nslookup www.google.com || true | ||
lxc exec alpine -- ping -c 1 dl-cdn.alpinelinux.org || true | ||
- name: Install dependencies | ||
run: lxc exec alpine -- apk add py3-tox git tzdata | ||
|
||
- name: Mount source into container directory | ||
run: lxc config device add alpine gitdir disk source=$(pwd) path=/root/cloud-init-ro | ||
|
||
- name: Create a r/w directory to run tests in | ||
# without this, tox fails during package install | ||
run: | | ||
lxc exec alpine -- git config --global --add safe.directory /root/cloud-init-ro/.git | ||
lxc exec alpine -- git clone cloud-init-ro cloud-init-rw | ||
- name: Set a timezone | ||
# test for regression of GH-5158 | ||
# https://github.com/canonical/cloud-init/issues/5158 | ||
run: lxc exec alpine -- ln -s /usr/share/zoneinfo/Europe/Brussels /etc/localtime | ||
|
||
- name: Set up tox environment | ||
# Setup the environment and then tell pytest to do essentially nothing | ||
run: lxc exec alpine --cwd /root/cloud-init-rw -- tox -e py3 -- --cache-show= | ||
|
||
- name: Stop network | ||
# Take down network interfaces to ensure tests don't use network | ||
run: lxc exec alpine -- ifdown -a | ||
|
||
- name: Run unittests | ||
run: lxc exec alpine --cwd /root/cloud-init-rw -- tox -e py3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
env: [ruff, mypy, pylint, black, isort] | ||
lint-with: | ||
- {tip-versions: false, os: ubuntu-20.04} | ||
- {tip-versions: true, os: ubuntu-latest} | ||
name: Check ${{ matrix.lint-with.tip-versions && 'tip-' || '' }}${{ matrix.env }} | ||
runs-on: ${{ matrix.lint-with.os }} | ||
name: Check ${{ matrix.env }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: "Checkout #1" | ||
uses: actions/[email protected] | ||
|
@@ -41,17 +38,10 @@ jobs: | |
run: python3 --version | ||
|
||
- name: Test | ||
if: ${{ !matrix.lint-with.tip-versions }} | ||
env: | ||
# matrix env: not to be confused w/environment variables or testenv | ||
TOXENV: ${{ matrix.env }} | ||
run: tox | ||
- name: Test (tip versions) | ||
if: matrix.lint-with.tip-versions | ||
continue-on-error: true | ||
env: | ||
TOXENV: tip-${{ matrix.env }} | ||
run: tox | ||
schema-format: | ||
strategy: | ||
fail-fast: false | ||
|
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
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
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
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
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
Oops, something went wrong.