Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
9c5b554
Refactor Docker setup and update CI workflows for Python 3.12 compati…
tbotnz Mar 23, 2026
ec9ab83
some clean up
tbotnz Mar 23, 2026
e69c57b
change all the things
tbotnz Mar 23, 2026
e9372e3
.
tbotnz Mar 23, 2026
3adb5d8
Refactor Docker Compose configuration to enhance service definitions …
tbotnz Mar 23, 2026
8a8f41f
Downgrade Kafka image version from 3.9.0 to 3.7.0 for compatibility
tbotnz Mar 23, 2026
fba504d
Update Kafka log directory to use /tmp for improved performance
tbotnz Mar 23, 2026
68205b5
Refactor operations layer to implement task dispatching via Operation…
tbotnz Mar 23, 2026
653651c
Remove deprecated dryrun, getconfig, scriptrunner, service, and setco…
tbotnz Mar 23, 2026
1e73888
Add .env and .env.example configuration files for environment variabl…
tbotnz Mar 23, 2026
6dd4b35
Refactor configuration management to use .env files instead of JSON; …
tbotnz Mar 23, 2026
76b56b4
Add dark theme CSS for Swagger UI and implement unit tests for operat…
tbotnz Mar 23, 2026
4bb2a1b
Refactor API model examples to use singular 'example' key instead of …
tbotnz Mar 23, 2026
3b0e5e2
Refactor JSON schema examples to use singular 'example' key for consi…
tbotnz Mar 23, 2026
e27a085
.
tbotnz Mar 23, 2026
0612e0d
Refactor worker-related tests to skip removed endpoints in Kafka migr…
tbotnz Mar 23, 2026
03151c8
Refactor README.md for clarity and consistency; update project descri…
tbotnz Mar 23, 2026
84f029a
Update Kafka log directory to use /tmp for improved performance in de…
tbotnz Mar 23, 2026
4a54b5b
Enhance dark theme for Swagger UI with improved color palette, layout…
tbotnz Mar 23, 2026
ce30c2a
Enhance Swagger UI documentation with improved HTML structure, langua…
tbotnz Mar 23, 2026
2a86c45
Add documentation for Kafka-native event system, including inbound/ou…
tbotnz Mar 23, 2026
e4ed5e5
Remove box shadows and adjust colors in dark theme for improved visua…
tbotnz Mar 23, 2026
6d4ff0c
Update Kafka log directory to /tmp for improved performance
tbotnz Mar 23, 2026
8501aed
Replace NetpalmMetaProcessedException with NetpalmError and NetpalmCh…
tbotnz Mar 23, 2026
b806931
.
tbotnz Mar 23, 2026
51105e9
Enhance Docker Compose configuration with restart policies and improv…
tbotnz Mar 23, 2026
8eed25f
Update PostgreSQL healthcheck parameters for improved reliability
tbotnz Mar 23, 2026
4ca41cb
.
tbotnz Mar 23, 2026
c28b896
Refactor Dockerfile to streamline poetry installation and remove redu…
tbotnz Mar 23, 2026
c904d1d
Update Dockerfile to restrict setuptools version and clean up test im…
tbotnz Mar 23, 2026
ce31de8
Add typecheck job to GitHub Actions and update tox environment list
tbotnz Mar 23, 2026
c6d04e2
Refactor type hints and imports across multiple modules
tbotnz Mar 23, 2026
e218089
Add unit tests for various utilities and models
tbotnz Mar 23, 2026
501e43b
.
tbotnz Mar 23, 2026
219d227
.
tbotnz Mar 23, 2026
9acac2c
.
tbotnz Mar 23, 2026
adfcdc1
Fix variable name in test for LibraryName enumeration
tbotnz Mar 23, 2026
f5d2ffc
Refactor test mock return values for improved readability
tbotnz Mar 23, 2026
4bed152
Refactor code for improved readability and consistency in argument fo…
tbotnz Mar 23, 2026
97528fe
.
tbotnz Mar 23, 2026
b363851
.
tbotnz Mar 23, 2026
5cbb6be
Refactor test assertion for ServiceInstanceState to use enum value
tbotnz Mar 23, 2026
065c5bf
.
tbotnz Mar 23, 2026
4b9c134
Refactor test for async context manager. in get_db_session
tbotnz Mar 23, 2026
b603089
.
tbotnz Mar 23, 2026
7d84b89
Add CI checks for code quality using ruff and mypy
tbotnz Mar 23, 2026
da5a8b0
.
tbotnz Mar 23, 2026
6c76fdc
Refactor code for improved type handling and error management across …
tbotnz Mar 23, 2026
dc38dfd
.
tbotnz Mar 23, 2026
bfed1bc
Enhance command execution by appending commit results to response if …
tbotnz Mar 23, 2026
9d1e68e
.
tbotnz Mar 23, 2026
4a95116
Refactor type annotations in sendcommand and config methods for clari…
tbotnz Mar 23, 2026
6a29613
.
tbotnz Mar 23, 2026
be2a8bb
.
tbotnz Mar 23, 2026
9384a60
Skip tests requiring ntc-templates index file when not available outs…
tbotnz Mar 23, 2026
f92306d
Add httpx installation to Dockerfile dependencies
tbotnz Mar 23, 2026
5c64d3f
Add wait_ready script and update CI workflow to check API readiness
tbotnz Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
.idea
.vscode
venv
.venv
__pycache__
*.pyc
.tox
.mypy_cache
.ruff_cache
backend/plugins/extensibles/ntc-templates
static
docker-compose*.yml
dockerfiles
docker-compose*.yml
74 changes: 36 additions & 38 deletions .github/workflows/testrun.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,49 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: tests

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
build:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build CI checks container
run: docker compose -f docker-compose.ci.yml --profile checks build ci-checks

- name: Run lint and type checks
run: docker compose -f docker-compose.ci.yml --profile checks run --rm ci-checks

unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install tox
- run: tox -e unit

integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build the stack
run: docker compose -f docker-compose.ci.yml build --parallel

# - run: docker-compose -f docker-compose.ci.yml pull # don't cache this
- name: Start the stack
run: docker compose -f docker-compose.ci.yml up -d

# - run: docker-compose -f docker-compose.ci.yml build cisgo redis # don't cache this
- name: Wait for API server to be ready
run: docker compose -f docker-compose.ci.yml exec -T netpalm-api-server python -m netpalm.wait_ready

- run: docker pull python:3.8-slim
- run: docker pull apcela/cisshgo:v0.1.0
- run: docker pull redis:6.0.7-alpine
- name: Integration tests
run: docker compose -f docker-compose.ci.yml exec -T netpalm-api-server pytest -m "not fulllab" -vv tests/integration

- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
with:
key: ci-tests-{hash}
restore-keys: |
ci-tests-
- name: Unit tests (in container)
run: docker compose -f docker-compose.ci.yml exec -T netpalm-api-server pytest -vv tests/unit

- name: Build the stack
# run: docker-compose -f ./docker-compose.dev.yml up -d
run: docker-compose -f docker-compose.ci.yml build --parallel

- run: docker-compose -f docker-compose.ci.yml up -d

- id: test_nolab
name: integration tests
run: docker-compose -f docker-compose.ci.yml exec -T netpalm-controller pytest -m "not fulllab" -vv tests/integration

- id: test_cisgo
name: unit tests
run: docker-compose -f docker-compose.ci.yml exec -T netpalm-controller pytest -vv tests/unit
# run: docker-compose -f ./docker-compose.dev.yml run controller echo "asdf"
# - name: notify slack
# if: ${{ always() }}
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# uses: abinoda/slack-action@master
# with:
# args: '{\"channel\":\"CUCQA382D\",\"blocks\": [ { \"type\": \"section\", \"text\": { \"type\": \"mrkdwn\", \"text\": \"Hey! ${{ github.actor }} just pushed to ${{ github.base_ref }} @ ${{ github.repositoryUrl }}. The Job status is ${{ job.status }}, the step outcome is ${{ steps.test.outcome }}, and the step conclusion is ${{ steps.test.conclusion }}!\" } } ]}'
- name: Teardown
if: always()
run: docker compose -f docker-compose.ci.yml down -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
venv
backend/plugins/extensibles/ntc-templates/
backend/plugins/extensibles/ntc-templates
config/.env
1 change: 1 addition & 0 deletions .kiro/specs/netpalm-modernisation/.config.kiro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"specId": "7e206233-ed16-40fb-8ff6-7ff570006e60", "workflowType": "design-first", "specType": "feature"}
Loading
Loading