Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Thank you for submitting a PR to cloud-init!
To ease the process of reviewing your PR, do make sure to complete the following checklist **before** submitting a pull request.

- [ ] I have signed the CLA: https://ubuntu.com/legal/contributors
- [ ] I have added my Github username to ``tools/.github-cla-signers``
- [ ] I have included a comprehensive commit message using the guide below
- [ ] I have added unit tests to cover the new behavior under ``tests/unittests/``
- Test files should map to source files i.e. a source file ``cloudinit/example.py`` should be tested by ``tests/unittests/test_example.py``
Expand Down
45 changes: 3 additions & 42 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,8 @@ name: CLA Check
on: workflow_dispatch

jobs:
cla-validate:

cla-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check CLA signing status for ${{ github.event.pull_request.user.login }}
run: |
cat > unsigned-cla.txt <<EOF
Hello ${{ github.event.pull_request.user.login }},

Thank you for your contribution to cloud-init.

In order for us to merge this pull request, you need
to have signed the Contributor License Agreement (CLA).
Please sign the CLA by following our
contribution guide at:
https://docs.cloud-init.io/en/latest/development/first_PR.html

Thanks,
Your friendly cloud-init upstream
EOF

has_signed() {
username="$1"
grep -q ": \"$username\"" ./tools/.lp-to-git-user && return 0
grep -q "^$username$" ./tools/.github-cla-signers && return 0
return 1
}

if has_signed "${{ github.event.pull_request.user.login }}"; then
echo "Thanks ${{ github.event.pull_request.user.login }} for signing cloud-init's CLA"
else
cat unsigned-cla.txt
exit 1
fi

check-cla-signers:
name: Verify that ./tools/.github-cla-signers is in alphabetical order
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Check CLA signers file
run: tools/check-cla-signers
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v2
2 changes: 2 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
retention-days: 3
- name: Setup LXD
uses: canonical/setup-lxd@v0.1.2
with:
channel: 6/stable
- name: Verify deb package
run: |
ls -hal '${{ runner.temp }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Run test - apply patches and run unit tests for each series
run: |
# Modify the following line to add / remove ubuntu series
for BRANCH in ubuntu/devel ubuntu/oracular ubuntu/noble ubuntu/jammy ubuntu/focal; do
for BRANCH in ubuntu/devel ubuntu/plucky ubuntu/noble ubuntu/jammy; do
# merge - this step is not expected to fail
git merge "origin/$BRANCH"
if [ ! -f debian/patches/series ]; then
Expand Down
58 changes: 29 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
build
cloud_init.egg-info
dist
*.asc
*.build
*.buildinfo
*.changes
*.cover
*.deb
*.dsc
*.egg-info
*.pyc
__pycache__
.tox
*.snap
*.tar.gz
*.tar.xz
*.upload
.cache/
.coverage
.coverage.*
.python-version
doc/rtd_html
parts
prime
stage
*.snap
*.cover
.hypothesis/
.idea/
.venv/
.pc/
.cache/
.mypy_cache/
.pc/
.pytest_cache/
.python-version
.tox
.venv/
.vscode/
__pycache__
build
changelog-file
dist
doc/rtd_html
htmlcov/
parts
prime
releasenotes-file
srpm/
stage
tags
.hypothesis/

# Ignore packaging artifacts
cloud-init.dsc
cloud-init_*.build
cloud-init_*.buildinfo
cloud-init_*.changes
cloud-init_*.deb
cloud-init_*.dsc
cloud-init_*.tar.gz
cloud-init_*.tar.xz
cloud-init_*.upload

# user test settings
tests/integration_tests/user_settings.py

1 change: 1 addition & 0 deletions .pc/applied-patches
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ no-single-process.patch
no-nocloud-network.patch
grub-dpkg-support.patch
no-remove-networkd-online.patch
strip-invalid-mtu.patch
10 changes: 10 additions & 0 deletions .pc/deprecation-version-boundary.patch/cloudinit/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@
to modify the systemd unit files.
"""

STRIP_INVALID_MTU = False
"""
If ``STRIP_INVALID_MTU`` is True, then cloud-init will strip invalid MTU
values from rendered v2 netplan configuration. Cloud-init allowed these values
prior to 24.2, so this flag is used to maintain compatibility with
previously generated network configurations.

(This flag can be removed when Noble is no longer supported.)
"""

DEPRECATION_INFO_BOUNDARY = "devel"
"""
DEPRECATION_INFO_BOUNDARY is used by distros to configure at which upstream
Expand Down
Loading
Loading