Skip to content

Commit dded3cf

Browse files
Merge branch 'master' into feat/per-alias-versions
- Fix compile tests by falling back to old component path if no dependencies object is present - Fix git tree tests by allowing dependency repos with no Author information on components - Fix using the correct path for rendering aliased targets
2 parents 591f081 + c838601 commit dded3cf

File tree

195 files changed

+14999
-6859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+14999
-6859
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ inventory/
77
tools/
88
!tools/entrypoint.sh
99
!tools/install-jb.sh
10+
!tools/install-kustomize.sh
1011
Dockerfile
1112
docker-compose.*
1213
_antora

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ insert_final_newline = false
2424

2525
[Makefile]
2626
indent_style = tab
27+
28+
[tests/testdata/**]
29+
trim_trailing_whitespace = false
30+
31+
[commodore/lib/kube-libsonnet/**]
32+
indent_size = unset

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Remove items that do not apply. For completed items, change [ ] to [x].
1414
- [ ] Update the documentation.
1515
- [ ] Update tests.
1616
- [ ] Categorize the PR by setting a good title and adding one of the labels:
17-
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`
17+
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`, `internal`
1818
as they show up in the changelog
1919
- [ ] Link this PR to related issues.
2020

.github/changelog-configuration.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
33
"categories": [
4+
{
5+
"title": "## 🔎 Breaking Changes",
6+
"labels": ["breaking"]
7+
},
48
{
59
"title": "## 🚀 Features",
610
"labels": ["enhancement", "feature"]
@@ -10,8 +14,8 @@
1014
"labels": ["change"]
1115
},
1216
{
13-
"title": "## 🔎 Breaking Changes",
14-
"labels": ["breaking"]
17+
"title": "## 🪛 Internal Changes",
18+
"labels": ["internal"]
1519
},
1620
{
1721
"title": "## 🐛 Fixes",

.github/workflows/build-virtualenv-caches.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
- mypy
2222
- black
2323
steps:
24-
- uses: actions/checkout@v3
25-
- uses: actions/setup-python@v4
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.9'
28-
- uses: Gr1N/setup-poetry@v7
27+
python-version: '3.11'
28+
- uses: Gr1N/setup-poetry@v9
2929
- name: Install tox
3030
run: |
3131
pip install tox
32-
- uses: actions/cache@v3
32+
- uses: actions/cache@v4
3333
with:
3434
path: |
3535
.tox
@@ -42,20 +42,19 @@ jobs:
4242
strategy:
4343
matrix:
4444
python-version:
45-
- '3.8'
46-
- '3.9.7'
47-
- '3.9'
4845
- '3.10'
46+
- '3.11'
47+
- '3.12'
4948
steps:
50-
- uses: actions/checkout@v3
51-
- uses: actions/setup-python@v4
49+
- uses: actions/checkout@v4
50+
- uses: actions/setup-python@v5
5251
with:
5352
python-version: ${{ matrix.python-version }}
54-
- uses: Gr1N/setup-poetry@v7
53+
- uses: Gr1N/setup-poetry@v9
5554
- name: Install tox
5655
run: |
5756
pip install tox
58-
- uses: actions/cache@v3
57+
- uses: actions/cache@v4
5958
with:
6059
path: |
6160
.tox
@@ -71,19 +70,19 @@ jobs:
7170
strategy:
7271
matrix:
7372
python-version:
74-
- '3.8'
75-
- '3.9'
7673
- '3.10'
74+
- '3.11'
75+
- '3.12'
7776
steps:
78-
- uses: actions/checkout@v3
79-
- uses: actions/setup-python@v4
77+
- uses: actions/checkout@v4
78+
- uses: actions/setup-python@v5
8079
with:
8180
python-version: ${{ matrix.python-version }}
82-
- uses: Gr1N/setup-poetry@v7
81+
- uses: Gr1N/setup-poetry@v9
8382
- name: Install tox
8483
run: |
8584
pip install tox
86-
- uses: actions/cache@v3
85+
- uses: actions/cache@v4
8786
with:
8887
path: |
8988
.tox
@@ -97,16 +96,16 @@ jobs:
9796
build_poetry_virtualenv:
9897
runs-on: ubuntu-latest
9998
steps:
100-
- uses: actions/checkout@v3
101-
- uses: actions/setup-python@v4
99+
- uses: actions/checkout@v4
100+
- uses: actions/setup-python@v5
102101
with:
103-
python-version: '3.9'
104-
- uses: Gr1N/setup-poetry@v7
105-
- uses: actions/cache@v3
102+
python-version: '3.11'
103+
- uses: Gr1N/setup-poetry@v9
104+
- uses: actions/cache@v4
106105
with:
107106
path: ~/.cache/pypoetry/virtualenvs
108107
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
109108
- name: Install Poetry and setup Poetry virtualenv
110109
run: |
111-
poetry env use python3.9
110+
poetry env use python3.11
112111
poetry install

.github/workflows/coverage.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,27 @@ on:
99

1010
jobs:
1111
coverage:
12+
# Only run coverage (which includes the integration test) for PRs which don't originate from a fork
13+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v4
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1618
with:
17-
python-version: '3.9'
18-
- uses: Gr1N/setup-poetry@v7
19-
- uses: actions/cache@v3
19+
python-version: '3.11'
20+
- uses: Gr1N/setup-poetry@v9
21+
- uses: actions/cache@v4
2022
with:
2123
path: ~/.cache/pypoetry/virtualenvs
2224
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
2325
- name: Install Poetry and setup Poetry virtualenv
2426
run: |
25-
poetry env use python3.9
27+
poetry env use python3.11
2628
poetry install
2729
- name: Install jsonnet-bundler
2830
run: |
2931
mkdir -p /opt/bin && curl -sLo /opt/bin/jb \
30-
https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v0.4.0/jb-linux-amd64 \
32+
https://github.com/projectsyn/jsonnet-bundler/releases/download/v0.6.1/jb_linux_amd64 \
3133
&& chmod +x /opt/bin/jb
3234
- name: Update PATH
3335
run: echo "/opt/bin" >> $GITHUB_PATH
@@ -44,7 +46,7 @@ jobs:
4446
env:
4547
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
4648
- name: Upload code coverage report to Code Climate
47-
uses: paambaati/codeclimate-action@v3.0.0
49+
uses: paambaati/codeclimate-action@v9.0.0
4850
env:
4951
CC_TEST_REPORTER_ID: f9c194f25b65bf9c9413d736386e70d32c128516218768333cd7205e79076506
5052
with:

.github/workflows/publish-pypi.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ on:
1212

1313
jobs:
1414
build-and-publish:
15+
# Skip job on forks
16+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
1517
name: Build and publish to PyPI
1618
runs-on: ubuntu-latest
1719

1820
steps:
19-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2022
with:
2123
fetch-depth: 0
2224
- name: Set up Python
23-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2426
with:
25-
python-version: '3.9'
26-
- uses: Gr1N/setup-poetry@v7
27-
- uses: actions/cache@v3
27+
python-version: '3.11'
28+
- uses: Gr1N/setup-poetry@v9
29+
- uses: actions/cache@v4
2830
with:
2931
path: ~/.cache/pypoetry/virtualenvs
3032
key: ${{ runner.os }}-publish-pypi-${{ hashFiles('poetry.lock') }}
@@ -44,9 +46,16 @@ jobs:
4446
run: poetry build
4547
- name: Publish to PyPI
4648
if: startsWith(github.ref, 'refs/tags/v')
49+
env:
50+
# increase connection timeout to PyPI to 60s
51+
# NOTE(sg): This is probably not required
52+
POETRY_REQUESTS_TIMEOUT: "60"
4753
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
4854
- name: Publish to TestPyPI
4955
if: "!startsWith(github.ref, 'refs/tags/v')"
56+
env:
57+
# increase connection timeout to TestPyPI to 60s
58+
POETRY_REQUESTS_TIMEOUT: "60"
5059
run: |
5160
poetry config repositories.test-pypi https://test.pypi.org/legacy/
5261
poetry publish -r test-pypi -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }}

.github/workflows/push-kapitan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
env:
1414
IMAGE: docker.io/projectsyn/kapitan
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set image version
1818
run: |
1919
echo "VERSION=$(grep "KAPITAN_VERSION=" tools/Dockerfile.kapitan | cut -d= -f2)" >> ${GITHUB_ENV}

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
env:
1313
IMAGE: docker.io/${{ github.repository }}
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: "0"
1818
- name: Set image version latest
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build changelog from PRs with labels
3636
if: startsWith(github.ref, 'refs/tags/v')
3737
id: build_changelog
38-
uses: mikepenz/release-changelog-builder-action@v3
38+
uses: mikepenz/release-changelog-builder-action@v5
3939
with:
4040
configuration: ".github/changelog-configuration.json"
4141
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,

0 commit comments

Comments
 (0)