Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
7da9b9e
initial commit
gavinying Sep 19, 2021
61f782e
add code
gavinying Sep 19, 2021
8c02b00
minor changes
gavinying Sep 19, 2021
8384115
enable DEBUG output
gavinying Sep 24, 2021
ee2e27d
change default port to 5020 to prevent running under root privilige
gavinying Sep 24, 2021
c32003b
auto start modsim
gavinying Sep 24, 2021
e4340fc
update README
gavinying Sep 24, 2021
96a1d32
make autostart
gavinying Sep 24, 2021
c966922
update README
gavinying Sep 24, 2021
db377fc
minor changes;
gavinying Dec 13, 2021
ff669a5
add more data types
gavinying Mar 10, 2022
52eacb9
update docs
gavinying Apr 19, 2022
fd0bbac
1) upgrade to support pymodbus v3
gavinying Jan 13, 2023
d179bd7
update dockerfile
gavinying Jan 13, 2023
e08e996
update example config
gavinying Jan 17, 2023
dbccff1
update example config
gavinying Jan 18, 2023
8908de5
update example config
gavinying Jul 16, 2023
75c1687
improve coils function
gavinying Sep 14, 2023
f108b3f
add pre-commit
gavinying Sep 14, 2023
9eb10cf
reformat code
gavinying Sep 14, 2023
842a432
fix version
gavinying Sep 14, 2023
b1775ce
bump version to v0.3.2
gavinying Sep 15, 2023
8f757d2
Merge branch 'hotfix/version_issue'
gavinying Sep 15, 2023
b1daea3
reverse coil datastore
gavinying Sep 15, 2023
e0d0f91
add armv7 support
gavinying Sep 15, 2023
2c43101
Merge pull request #2 from gavinying/feature/armv7_support
gavinying Sep 15, 2023
9ab1a28
update pre-commit
gavinying Feb 18, 2024
4ff0a04
chore: update script
gavinying Jul 7, 2024
45ea5d8
refactor: project setup
gavinying Jul 7, 2024
af637e6
Merge branch 'refactor'
gavinying Jul 7, 2024
8b1f23b
fix: include master branch
gavinying Jul 7, 2024
b6f6c7d
Release-As: 0.4.0
gavinying Jul 7, 2024
cb190e8
fix: remove old CHANGELOG.md
gavinying Jul 7, 2024
1478729
feat: add docs
gavinying Jul 7, 2024
aa96b32
chore(master): release 0.4.0 (#3)
tm-infra-robot[bot] Jul 7, 2024
dcc5a97
ci: use release-please manifest config
gavinying Jul 13, 2024
08d3ff8
ci: update action name
gavinying Jul 13, 2024
12904f5
feat: add docker related commands in Makefile
gavinying Jul 13, 2024
4011677
chore(master): release 0.5.0 (#4)
tm-infra-robot[bot] Jul 13, 2024
1047081
chore: enable release draft
gavinying Jul 13, 2024
cf33b54
chore: update docker commands for local use
gavinying Jul 13, 2024
1f87909
ci: add more validation
gavinying Jul 31, 2024
d1cf5c6
fix: Broken version info
gavinying Oct 10, 2024
79306a8
chore: remove unused dependency
gavinying Oct 10, 2024
5f717ba
fix: validation pipeline
gavinying Oct 10, 2024
775148e
chore(master): release 0.5.1 (#5)
tm-infra-robot[bot] Oct 10, 2024
fd09903
chore: Update docker-compose
gavinying Oct 10, 2024
be24691
chore: Update string value
gavinying Dec 22, 2024
d2e736a
fix: Example config issue
gavinying Dec 22, 2024
20ec6cf
chore(master): release 0.5.2 (#8)
tm-infra-robot[bot] Dec 22, 2024
6ce5056
chore: update to topmaker
gavinying Oct 15, 2025
b94c934
chore: update the default branch to main
gavinying Dec 6, 2025
e37fe52
feat: prepare modsim 1.0.0 with graceful shutdown (#9)
gavinying Oct 27, 2026
9a60a7d
fix!: deps (#11)
gavinying Oct 27, 2026
fcab111
chore(main): release 1.0.0 (#10)
tm-infra-robot[bot] Oct 27, 2026
e7d052f
fix: harden simulator transports and release safety (#12)
gavinying Oct 27, 2026
bb3d473
chore: update modsim organization links
gavinying Oct 28, 2026
e68bac7
chore: update modsim organization links (#15)
gavinying Oct 28, 2026
26c708b
chore: Upgrade PyModbus 3.6.9 → 3.16.1 with comprehensive API migrati…
Copilot Oct 28, 2026
722a857
chore: Refresh non-PyModbus dependency lockset and stabilize docs too…
Copilot Oct 28, 2026
069b68e
chore(main): release 1.0.1 (#13)
tm-infra-robot[bot] Oct 28, 2026
6efade1
chore: update Python version support to 3.10 and above in configurati…
gavinying Oct 28, 2026
1c80269
Merge branch 'codex/modsim-org-links'
gavinying Oct 28, 2026
4a04157
chore: update modpoll links in README and index documentation
gavinying Oct 28, 2026
c10c344
ci: trigger checks on v2 branch
gavinying Oct 28, 2026
80b17cc
ci: remove stale master release trigger
gavinying Oct 28, 2026
690edcd
feat: package modpoll-wot with guarded preview publishing
gavinying Oct 28, 2026
dd23402
docs: add ADAM product manuals and raw TD candidates
gavinying Oct 28, 2026
5cb6a61
feat(wot): add isolated standard-form TM to TD pilot
gavinying Oct 28, 2026
8f659ae
feat(wot): complete standard Form profiles and distribution readiness
gavinying Oct 28, 2026
65160a0
fix(ci): propagate candidate source path to subprocess CLIs
gavinying Oct 28, 2026
47ea7c4
docs(examples): maintain ADAM TMs and generate interoperable TDs
gavinying Oct 29, 2026
eb2edcd
feat: add candidate TM/TD native I/O simulation and validation
gavinying Oct 29, 2026
4ac9d4a
feat(wot): validate profile 0.2 binary media parameters
gavinying Oct 29, 2026
8d1af20
feat(wot): make profile 0.2 the canonical v2 model
gavinying Oct 29, 2026
e0dd72d
feat: Refactor ADAM-6024 and ADAM-5017UH models and TD generation
gavinying Oct 29, 2026
209c32b
feat: release model-driven multi-device simulator preview
gavinying Oct 29, 2026
4e8e4e5
fix(ci): retry transient container readiness resets
gavinying Oct 29, 2026
b831e3a
ci: allow independent validation of immutable previews
gavinying Oct 29, 2026
b4e5565
feat: add managed deployment lifecycle commands
gavinying Oct 29, 2026
6ed1e03
fix: replace deprecated pymodbus datastore contexts
gavinying Oct 29, 2026
14fa6cf
fix: follow logs when attaching to running deployment
gavinying Oct 29, 2026
0e1ff05
fix: support logs follow short option
gavinying Oct 29, 2026
75c429e
feat: manage simulator with docker compose
gavinying Oct 29, 2026
a2f1e66
feat: add managed docker compose deployment
gavinying Oct 29, 2026
8806596
feat: migrate deployments to version 2
gavinying Oct 29, 2026
cd88488
refactor: use yaml for all deployments
gavinying Oct 29, 2026
eed7883
refactor: unify example deployment files
gavinying Oct 29, 2026
5871d26
feat: use adam devices for default deployment
gavinying Oct 29, 2026
9e408d8
refactor: remove examples directory
gavinying Oct 29, 2026
b8ef0f3
docs: align project guidance with v2
gavinying Oct 29, 2026
262bf47
fix: update lab name and THING_ID references in deployment.yaml
gavinying Oct 29, 2026
a863d63
fix: remove unnecessary init flag from modsim service in docker-compo…
gavinying Oct 29, 2026
0296d82
docs: add modpoll interoperability example
gavinying Oct 29, 2026
6b0591a
feat: Add Advantech ADAM-6024 specifications and deployment configura…
gavinying Oct 29, 2026
2dc223d
feat: update TD export functionality and default output directory
gavinying Oct 29, 2026
01c9e89
fix: update Python versions in CI configuration and tox settings
gavinying Oct 29, 2026
584338c
fix: align preview checks and validation
gavinying Oct 30, 2026
95ec328
feat: add TM and TD command line tools
gavinying Oct 30, 2026
a1d7a74
refactor: simplify wot command line interface
gavinying Oct 30, 2026
b8fc25d
feat: clarify wot validation output
gavinying Oct 30, 2026
41c158a
feat: simplify creation of thing model templates
gavinying Oct 30, 2026
2ee30e0
fix: prepare wot cli preview release
gavinying Oct 30, 2026
3e81c96
build: update shared wot interpreter to 0.2.0a2
gavinying Oct 30, 2026
602722b
fix: wait for pypi propagation during release checks
gavinying Oct 30, 2026
daffc56
docs: clarify pypi cache retry limits
gavinying Oct 30, 2026
90c3596
chore: add siemens devices
gavinying Oct 30, 2026
a2c7784
build: migrate modsim to uv
gavinying Oct 30, 2026
e7c642c
build: migrate modpoll and modpoll-wot to uv
gavinying Oct 30, 2026
0420bb6
feat: Refactor tests and update model version to 0.2
gavinying Nov 2, 2026
8a2b6db
docs: update contributing guidelines for device model submissions
gavinying Nov 2, 2026
044e53a
docs: separate site sources from maintenance docs
gavinying Nov 2, 2026
89a7435
feat(wot): add versioned device metadata schema
gavinying Nov 2, 2026
0c9d1f8
docs(wot): distinguish published metadata and application versions
gavinying Nov 2, 2026
0241f44
feat(models): consume immutable catalog and retire editable contrib data
gavinying Nov 2, 2026
008ce74
Merge pull request #21 from top-maker/codex/catalog-consumer
gavinying Nov 2, 2026
c26f893
feat(acceptance): gate preview on catalog interoperability and platfo…
gavinying Nov 2, 2026
460df9a
fix(windows): recognize native absolute configuration paths
gavinying Nov 2, 2026
a71bc5f
Merge pull request #22 from top-maker/codex/m2-preview-acceptance
gavinying Nov 2, 2026
d896208
test(platforms): stop owned Windows process trees before checking ports
gavinying Nov 2, 2026
c1cf860
fix(acceptance): prepare pinned fixtures outside the source checkout
gavinying Nov 2, 2026
e60b71d
test(interop): trace fixed scenario and released runtime evidence
gavinying Nov 2, 2026
41218a7
chore(models): pin released L2 evidence catalog v2
gavinying Nov 2, 2026
b2326fa
chore(models): retain scoped evidence with pinned simulation inputs
gavinying Nov 2, 2026
f21e754
Merge pull request #23 from top-maker/codex/m2-evidence-consumer
gavinying Nov 2, 2026
5cbac26
test: validate full and public audit TMs in simulation
gavinying Nov 4, 2026
ce337e3
style: format simulator audit vector test
gavinying Nov 4, 2026
7321fbb
feat(wot): prepare audit contract release 0.2.0a4 (#116)
gavinying Nov 4, 2026
e43d25b
chore(release): pin the published a4 interpreter for modsim 2.0.0a3
gavinying Nov 4, 2026
dcbe89c
chore: regenerate fixture provenance with modpoll-wot a4
gavinying Nov 4, 2026
e985296
feat: accept full and public audit models in modsim 2.0.0a3 (#24)
gavinying Nov 4, 2026
f317fb7
Merge branch 'codex/r3-audit-consumer' into v2
gavinying Nov 4, 2026
79bf016
chore: make modpoll-wot a standalone repository
gavinying Nov 9, 2026
38afa94
feat!: remove the device metadata schema
gavinying Nov 9, 2026
09dcbff
feat: read example models from Open Modbus Catalog (SIM-01) (#25)
gavinying Nov 9, 2026
9a51f67
feat!: add point and model fingerprints and verification reports (WOT…
gavinying Nov 9, 2026
587e9d6
feat: load HTTPS scenarios and identify modsim on downloads (#26)
gavinying Nov 9, 2026
33f4043
feat!: use product and chassis in verification report schema 2 (#2)
gavinying Nov 9, 2026
5999258
chore: read catalog products from the renamed catalog layout (#27)
gavinying Nov 9, 2026
5017990
feat: listen on Modbus port 502 by default (#28)
gavinying Nov 10, 2026
8c37bec
feat!: remove the modpoll:audit plan (WOT-03) (#3)
gavinying Nov 10, 2026
accad3d
test: drop the audit model test and audit docs (WOT-03) (#29)
gavinying Nov 10, 2026
7a9cd56
feat: pin modpoll-wot 0.3.0a3 for 2.0.0a6 (WOT-03) (#30)
gavinying Nov 10, 2026
baef646
feat!: add simulation data and verification report schema 3 (WOT-04) …
gavinying Nov 12, 2026
3846f42
feat: load simulation data with --data and replay modpoll snapshots (…
gavinying Nov 12, 2026
61eaeb3
fix: expect the snapshot replay job in the release guard and release …
gavinying Nov 12, 2026
b12bf3d
fix: hold only writable properties, unblock management and build off …
gavinying Nov 12, 2026
0169f49
fix: contain scripts, journal write rollback, hold bound targets, clo…
gavinying Nov 12, 2026
195c92c
feat: add coverage report file
gavinying Nov 12, 2026
1519da2
feat: define the tool session credentials file and modiohub reference…
gavinying Nov 12, 2026
e913027
feat: sign in to ModioHub and simulate Workspace Thing Models (POLL-0…
gavinying Nov 12, 2026
de74f48
feat: verification report schema 4 with optional product (#6)
gavinying Nov 12, 2026
1731794
fix: print the sign-in link quietly where no browser can open, releas…
gavinying Nov 13, 2026
973efcb
feat: resolve the active server from the only live tool session (#7)
gavinying Nov 13, 2026
bb8e536
feat: resolve the ModioHub server from the only live tool session
gavinying Nov 13, 2026
bda3586
chore: regenerate the TD fixture with modpoll-wot 0.6.0a2
gavinying Nov 13, 2026
c590988
chore: release 2.0.0a11
gavinying Nov 13, 2026
b16030b
chore: bump the module version to 2.0.0a11
gavinying Nov 13, 2026
01f952a
feat: default port 5020 and Modbus RTU on a virtual serial port, rele…
gavinying Nov 13, 2026
6f69bf2
refactor: move modpoll into packages/modpoll (TOOL-01)
gavinying Nov 13, 2026
4736e87
merge: import modsim v2 history into packages/modsim (TOOL-01)
gavinying Nov 13, 2026
eb58c3d
merge: import modpoll-wot main history into packages/modpoll-wot (TOO…
gavinying Nov 13, 2026
ee43335
build: make the repository a uv workspace with one lock (TOOL-01)
gavinying Nov 13, 2026
710f85f
ci: run each package's CI and releases from the repository root (TOOL…
gavinying Nov 13, 2026
449ea58
fix: resolve modsim's examples and modpoll's interop interpreter insi…
gavinying Nov 13, 2026
97c8e52
test: run the 2.x transport client in the workspace interpreter (TOOL…
gavinying Nov 13, 2026
b0f9d12
test: run the 2.x MQTT client in the workspace interpreter (TOOL-01)
gavinying Nov 13, 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
15 changes: 9 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.git
.venv
.tox
.pytest_cache
**/__pycache__
**/.venv
**/.tox
**/.pytest_cache
**/.mypy_cache
**/__pycache__
**/dist
docs/_build
.interop
**/site
**/docs/_build
**/.interop
packages/modsim/output
packages/modsim/contrib/**/*.pdf
7 changes: 5 additions & 2 deletions .github/actions/setup-uv/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: "setup-uv"
description: "Set up Python and sync the locked uv environment."
description: "Set up Python and sync one workspace member's locked environment."

inputs:
package:
required: true
description: "The workspace member to install: modpoll, modsim or modpoll-wot"
python-version:
required: false
description: "The Python version to use"
Expand All @@ -17,5 +20,5 @@ runs:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Install dependencies
run: uv sync --locked --all-extras --all-groups
run: uv sync --locked --all-extras --all-groups --package ${{ inputs.package }}
shell: bash
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: preview-app
name: modpoll-release
# Releases modpoll from a `modpoll-v<version>` tag. A push to v2 that changes this file only republishes the
# image of the current version. Tags before TOOL-01 were `v<version>`; the scripts still take that form ($TAG).
on:
push:
tags: ['v2.*']
tags: ['modpoll-v2.*']
branches: [v2]
paths: ['.github/workflows/preview-app.yml']
paths: ['.github/workflows/modpoll-release.yml']
permissions:
contents: read
concurrency:
group: preview-app-publish
cancel-in-progress: false
defaults:
run:
working-directory: packages/modpoll
jobs:
candidate:
runs-on: ubuntu-latest
outputs:
git-tag: ${{ steps.release.outputs.git-tag }}
tag: ${{ steps.release.outputs.tag }}
image-version: ${{ steps.release.outputs.image-version }}
steps:
Expand All @@ -21,16 +27,19 @@ jobs:
fetch-depth: 0
- id: release
run: |
tag="$GITHUB_REF_NAME"
if [ "$tag" = v2 ]; then
tag="v$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
if [ "$GITHUB_REF_TYPE" = tag ]; then
git_tag="$GITHUB_REF_NAME"
else
git_tag="modpoll-v$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
fi
git rev-parse --verify "refs/tags/$tag^{commit}"
git merge-base --is-ancestor "refs/tags/$tag^{commit}" origin/v2
git rev-parse --verify "refs/tags/$git_tag^{commit}"
git merge-base --is-ancestor "refs/tags/$git_tag^{commit}" origin/v2
tag="${git_tag#modpoll-}"
image_version="${tag#v}"
if [ "$GITHUB_REF_NAME" = v2 ]; then
image_version="$image_version-r1"
fi
echo "git-tag=$git_tag" >> "$GITHUB_OUTPUT"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "image-version=$image_version" >> "$GITHUB_OUTPUT"
publish:
Expand All @@ -45,44 +54,48 @@ jobs:
ref: ${{ github.ref }}
fetch-depth: 0
- uses: ./.github/actions/setup-uv
with:
package: modpoll
- name: Require an accepted v2 preview candidate
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
TAG: ${{ needs.candidate.outputs.tag }}
run: |
git merge-base --is-ancestor "$GITHUB_SHA" origin/v2
python .github/scripts/preview-release.py guard "$TAG"
- name: Build portable distributions
run: uv build --no-sources
run: uv build --no-sources --out-dir dist
- uses: actions/upload-artifact@v4
with:
name: application-distributions
path: dist/*
path: packages/modpoll/dist/*
- name: Verify wheel dependencies and installation
run: |
python .github/scripts/check-portable-wheel.py dist/*.whl
dist="$PWD/dist"
cd "$RUNNER_TEMP"
uv run --isolated --with "$GITHUB_WORKSPACE"/dist/*.whl modpoll --version
uv run --isolated --with "$GITHUB_WORKSPACE"/dist/*.tar.gz modpoll --version
uv run --isolated --with "$dist"/*.whl modpoll --version
uv run --isolated --with "$dist"/*.tar.gz modpoll --version
- name: Check immutable version
id: pypi
env:
TAG: ${{ github.ref_name }}
TAG: ${{ needs.candidate.outputs.tag }}
run: python .github/scripts/preview-release.py pypi "$TAG"
- name: Publish application to PyPI
if: steps.pypi.outputs.state == 'absent'
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish --no-progress
run: uv publish --no-progress dist/*
- name: Record functional prerelease
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
GIT_TAG: ${{ needs.candidate.outputs.git-tag }}
TAG: ${{ needs.candidate.outputs.tag }}
run: |
if ! gh release view "$TAG" >/dev/null 2>&1; then
gh release create "$TAG" --verify-tag --prerelease --latest=false --title "Modpoll ${TAG#v} — WoT configuration preview" --notes-file docs/preview-notes.md
if ! gh release view "$GIT_TAG" >/dev/null 2>&1; then
gh release create "$GIT_TAG" --verify-tag --prerelease --latest=false --title "Modpoll ${TAG#v} — WoT configuration preview" --notes-file docs/preview-notes.md
fi
gh release upload "$TAG" dist/*
gh release upload "$GIT_TAG" dist/*
image:
needs: [candidate, publish]
if: ${{ !cancelled() && needs.candidate.result == 'success' && (needs.publish.result == 'success' || (github.ref_name == 'v2' && needs.publish.result == 'skipped')) }}
Expand All @@ -107,12 +120,13 @@ jobs:
run: |
python .github/scripts/check_release_version.py "$TAG"
image="$REGISTRY/$OWNER/modpoll:$IMAGE_VERSION"
# The image installs from the workspace lock, so it builds from the repository root.
if docker buildx imagetools inspect "$image" >/dev/null 2>&1; then
docker run --rm "$image" | grep -Fx "v${TAG#v}"
else
docker buildx build --load --platform linux/amd64 -t modpoll-preview-smoke .
docker buildx build --load --platform linux/amd64 -f Dockerfile -t modpoll-preview-smoke ../..
docker run --rm modpoll-preview-smoke | grep -Fx "v${TAG#v}"
docker buildx build --platform linux/amd64,linux/arm64 -t "$image" --push .
docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile -t "$image" --push ../..
fi
docs:
needs: [candidate, publish]
Expand All @@ -126,15 +140,17 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.candidate.outputs.tag }}
ref: ${{ needs.candidate.outputs.git-tag }}
- uses: ./.github/actions/setup-uv
with:
package: modpoll
- uses: ./.github/actions/setup-pandoc
- name: Build preview documentation
run: make docs
- uses: actions/checkout@v4
with:
ref: gh-pages
path: .pages
path: packages/modpoll/.pages
- name: Assemble both versions while preserving the vocabulary
run: |
mkdir .site
Expand All @@ -143,23 +159,24 @@ jobs:
test -f .site/vocab/wot-modbus/acquisition-0.1.json
test -f .site/vocab/wot-modbus/contract-0.1.txt
wot_version=$(uv run --locked --no-sync python -c 'import importlib.metadata as m; print(m.version("modpoll-wot"))')
wot_source="https://raw.githubusercontent.com/top-maker/modpoll-wot/v$wot_version"
# modpoll-wot is released from this repository since TOOL-01, under packages/modpoll-wot.
wot_source="https://raw.githubusercontent.com/top-maker/modpoll/modpoll-wot-v$wot_version/packages/modpoll-wot"
curl -fsSL "$wot_source/modpoll_wot/schemas/acquisition-0.2.json" -o vocab/wot-modbus/acquisition-0.2.json
curl -fsSL "$wot_source/profile.md" -o vocab/wot-modbus/contract-0.2.txt
python .github/scripts/assemble-docs.py docs/_build/html .site v2 --vocab vocab
printf '%s\n' "$(git rev-parse HEAD)" > .site/v2/source-sha.txt
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ github.token }}
publish_dir: .site
publish_dir: packages/modpoll/.site
acceptance:
needs: [candidate, publish, image, docs]
if: ${{ !cancelled() && needs.docs.result == 'success' && needs.image.result == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.candidate.outputs.tag }}
ref: ${{ needs.candidate.outputs.git-tag }}
- uses: astral-sh/setup-uv@v6
with:
version: 0.11.19
Expand All @@ -168,12 +185,12 @@ jobs:
- uses: actions/checkout@v4
with:
ref: 0b42099e8b22eaaa4788a9f91e8bf60b4870204c
path: .interop/modpoll-1x
path: packages/modpoll/.interop/modpoll-1x
- uses: actions/checkout@v4
with:
repository: top-maker/modsim
ref: 92fe5d4c417b2691693feb2b6bd93fd1f54439fe
path: .interop/modsim
path: packages/modpoll/.interop/modsim
- name: Download published application and install isolated fixtures
env:
TAG: ${{ needs.candidate.outputs.tag }}
Expand All @@ -194,9 +211,9 @@ jobs:
docker run -d --name preview-acceptance -p 127.0.0.1:18883:1883 -v "$RUNNER_TEMP/mqtt.conf:/mosquitto/config/mosquitto.conf:ro" eclipse-mosquitto:2
- name: Verify the registry-installed application without application source
env:
MODSIM_SOURCE: ${{ github.workspace }}/.interop/modsim
MODSIM_PYTHON: ${{ github.workspace }}/.interop/modsim/.venv/bin/python
MODPOLL_1X_SOURCE: ${{ github.workspace }}/.interop/modpoll-1x
MODSIM_SOURCE: ${{ github.workspace }}/packages/modpoll/.interop/modsim
MODSIM_PYTHON: ${{ github.workspace }}/packages/modpoll/.interop/modsim/.venv/bin/python
MODPOLL_1X_SOURCE: ${{ github.workspace }}/packages/modpoll/.interop/modpoll-1x
MODPOLL_MQTT_HOST: 127.0.0.1
MODPOLL_MQTT_PORT: '18883'
MODPOLL_MQTT_INTEGRATION: '1'
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/modpoll-wot-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: modpoll-wot-release

on:
push:
tags: ['modpoll-wot-v*']

permissions:
contents: read

concurrency:
group: release
cancel-in-progress: false

defaults:
run:
working-directory: packages/modpoll-wot

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Require a tag on v2 that matches the package version
run: |
git merge-base --is-ancestor "$GITHUB_SHA" origin/v2
version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
test "$GITHUB_REF_NAME" = "modpoll-wot-v$version"
echo "VERSION=$version" >> "$GITHUB_ENV"
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: '2026.10.1'
working_directory: packages/modpoll-wot
- run: mise run check
- name: Publish to PyPI without replacing existing files
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish --no-progress --check-url https://pypi.org/simple/ dist/*
- name: Verify the registry installation
timeout-minutes: 15
run: |
fixture="$PWD/tests/fixtures/modsim.tm.json"
cd "$RUNNER_TEMP"
for attempt in $(seq 1 20); do
if uv run --isolated --no-project --no-cache --with "modpoll-wot==$VERSION" modpoll-wot validate "$fixture" --profile; then
exit 0
fi
sleep 30
done
exit 1
- name: Record a GitHub prerelease
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1 ||
gh release create "$GITHUB_REF_NAME" dist/* --verify-tag --prerelease --title "modpoll-wot $VERSION" --notes "See packages/modpoll-wot/CONTRACT.md and profile.md at this tag."
88 changes: 88 additions & 0 deletions .github/workflows/modpoll-wot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: modpoll-wot

on:
push:
branches: [v2]
paths:
- packages/modpoll-wot/**
- pyproject.toml
- uv.lock
- .github/workflows/modpoll-wot.yml
pull_request:
paths:
- packages/modpoll-wot/**
- pyproject.toml
- uv.lock
- .github/workflows/modpoll-wot.yml

permissions:
contents: read

defaults:
run:
working-directory: packages/modpoll-wot

jobs:
test:
name: modpoll-wot test (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.14']
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
version: 0.11.19
python-version: ${{ matrix.python-version }}
- run: uv sync --locked
- run: uv run --locked pytest -q

package:
name: modpoll-wot package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: '2026.10.1'
working_directory: packages/modpoll-wot
- run: mise run check
- uses: actions/upload-artifact@v4
with:
name: distributions
path: packages/modpoll-wot/dist/*

# The consumers run their own tests against the candidate wheel instead of the workspace source.
consumers:
name: consumer (${{ matrix.package }})
needs: package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package: modpoll
prepare: 'true'
- package: modsim
prepare: uv run --no-sync python tools/fetch-models.py
defaults:
run:
working-directory: packages/${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: distributions
path: ${{ runner.temp }}/dist
- uses: astral-sh/setup-uv@v6
with:
version: 0.11.19
python-version: '3.12'
- name: Install the consumer with the candidate interpreter
run: |
uv sync --locked --all-extras --all-groups
uv pip install --reinstall --no-deps "$RUNNER_TEMP"/dist/*.whl
- run: ${{ matrix.prepare }}
- run: uv run --no-sync pytest -q tests
Loading
Loading