Skip to content

Commit d22db9e

Browse files
authored
Merge branch 'vyos:current' into current
2 parents 625b9a9 + 115fe85 commit d22db9e

1,077 files changed

Lines changed: 8314 additions & 5358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Open PRs Conflicts checker"
2+
on:
3+
push:
4+
branches:
5+
- current
6+
- sagitta
7+
- circinus
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
check-pr-conflict-call:
16+
uses: vyos/.github/.github/workflows/check-open-prs-conflict.yml@current
17+
secrets: inherit

.github/workflows/cla-check.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "CLA Check"
2+
3+
permissions:
4+
actions: write
5+
contents: read
6+
pull-requests: write
7+
statuses: write
8+
9+
on:
10+
pull_request_target:
11+
types: [opened, synchronize, closed]
12+
issue_comment:
13+
types: [created]
14+
15+
jobs:
16+
call-cla-assistant:
17+
uses: vyos/vyos-cla-signatures/.github/workflows/cla-reusable.yml@current
18+
secrets: inherit

.github/workflows/cleanup-mirror-pr-branch.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint py code with ruff
1+
name: Python Lint (Darker + Ruff)
22
on:
33
pull_request_target:
44
branches:
@@ -9,6 +9,6 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
ruff-lint:
13-
uses: vyos/.github/.github/workflows/lint-with-ruff.yml@current
12+
darker-ruff-lint:
13+
uses: vyos/.github/.github/workflows/lint-with-darker-ruff.yml@current
1414
secrets: inherit

.github/workflows/mirror-pr-and-sync.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/package-smoketest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Generate ISO version string
5050
id: version
5151
run: |
52-
echo "build_version=1.5-integration-$(date -u +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
52+
echo "build_version=$(date -u +%Y.%m.%d-%H%M-integration)" >> $GITHUB_OUTPUT
5353
- name: Build custom ISO image
5454
shell: bash
5555
run: |
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR Mirror and Repo Sync
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
branches: [current]
7+
workflow_dispatch:
8+
inputs:
9+
sync_branch:
10+
description: 'Branch to mirror'
11+
required: true
12+
default: 'current'
13+
type: choice
14+
options:
15+
- current
16+
17+
permissions:
18+
pull-requests: write
19+
contents: write
20+
issues: write
21+
22+
jobs:
23+
call-pr-mirror-repo-sync:
24+
if: |
25+
github.repository_owner == 'vyos' &&
26+
(
27+
github.event_name == 'workflow_dispatch' ||
28+
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
29+
)
30+
uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
31+
with:
32+
sync_branch: ${{ github.event.inputs.sync_branch || 'current' }}
33+
secrets:
34+
PAT: ${{ secrets.PAT }}
35+
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
36+
REMOTE_REPO: ${{ secrets.REMOTE_REPO }}

.github/workflows/trigger-pr-mirror-repo-sync.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,14 @@ data/component-versions.json
146146
python/vyos/xml_ref/cache.py
147147
python/vyos/xml_ref/pkg_cache/*_cache.py
148148
python/vyos/xml_ref/op_cache.py
149+
python/vyos/xml_ref/op_cache.json
149150
python/vyos/xml_ref/pkg_cache/*_op_cache.py
150151
data/reftree.cache
151152
# autogenerated vyos-configd JSON definition
152153
data/configd-include.json
153154

154155
# autogenerated vyos-commitd protobuf files
155-
python/vyos/proto/*pb2.py
156156
python/vyos/proto/*.desc
157-
python/vyos/proto/vyconf_proto.py
158157

159158
# We do not use pip
160159
Pipfile

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ op_mode_definitions: $(op_xml_obj)
6969

7070
find $(BUILD_DIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1
7171

72-
$(CURDIR)/python/vyos/xml_ref/generate_op_cache.py --xml-dir $(BUILD_DIR)/op-mode-definitions || exit 1
72+
$(CURDIR)/python/vyos/xml_ref/generate_op_cache.py --check-path-ambiguity --xml-dir $(BUILD_DIR)/op-mode-definitions || exit 1
7373

7474
# XXX: tcpdump, ping, traceroute and mtr must be able to recursivly call themselves as the
7575
# options are provided from the scripts themselves
@@ -89,7 +89,14 @@ vyshim:
8989
$(MAKE) -C $(SHIM_DIR)
9090

9191
.PHONY: all
92-
all: clean libvyosconfig interface_definitions op_mode_definitions test j2lint vyshim generate-configd-include-json
92+
all: clean copyright libvyosconfig interface_definitions op_mode_definitions test j2lint vyshim generate-configd-include-json
93+
94+
.PHONY: copyright
95+
copyright:
96+
@if git grep -q -E "Copyright( \(C\))? (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers"; then \
97+
echo "Error: Legacy copyright notice found."; \
98+
exit 1; \
99+
fi
93100

94101
.PHONY: clean
95102
clean:
@@ -100,7 +107,7 @@ clean:
100107

101108
.PHONY: test
102109
test: generate-configd-include-json
103-
set -e; python3 -m compileall -q -x '/vmware-tools/scripts/, /ppp/' .
110+
set -e; python3 -m compileall -q -x '/vmware-tools/scripts/' .
104111
PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators,src/tests --verbose
105112

106113
.PHONY: check_migration_scripts_executable

0 commit comments

Comments
 (0)