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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
pre-commit:
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@65d1a1eda04de5bb54bd5057b3ebe4b7c8fa4b45 # v7.1.6
with:
checkout-ref: ${{ github.ref }}
skip-hooks: 'pylint'
Expand All @@ -19,7 +19,7 @@ jobs:
3.15

pylint:
uses: coatl-dev/workflows/.github/workflows/pylint.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1
uses: coatl-dev/workflows/.github/workflows/pylint.yml@65d1a1eda04de5bb54bd5057b3ebe4b7c8fa4b45 # v7.1.6
with:
path: src
checkout-ref: ${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
ref: ${{ github.event.release.tag_name }}

- name: Upload package to PyPI
uses: coatl-dev/actions/pypi-upload@499c77f2bc6f909d372849058517ca2e39ce16d4 # v7.1.3
uses: coatl-dev/actions/pypi-upload@c339f0299e21b3b28b42414e3ea474d33468713c # v7.1.5
with:
password: ${{ secrets.PYPI_API_TOKEN_IGNITION_API_PKG }}

- name: Upload stubs to PyPI
uses: coatl-dev/actions/pypi-upload@499c77f2bc6f909d372849058517ca2e39ce16d4 # v7.1.3
uses: coatl-dev/actions/pypi-upload@c339f0299e21b3b28b42414e3ea474d33468713c # v7.1.5
with:
python-version: '3.12'
password: ${{ secrets.PYPI_API_TOKEN_IGNITION_API_STUBS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:

jobs:
tox-package:
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@65d1a1eda04de5bb54bd5057b3ebe4b7c8fa4b45 # v7.1.6
with:
checkout-ref: ${{ inputs.checkout-ref }}

tox-stubs:
uses: coatl-dev/workflows/.github/workflows/tox.yml@6803f1bf5290b457054db1b58d012c4887b6ada8 # v7.1.1
uses: coatl-dev/workflows/.github/workflows/tox.yml@65d1a1eda04de5bb54bd5057b3ebe4b7c8fa4b45 # v7.1.6
with:
python-versions: |
3.10
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
enum34
java-api
java-api>17,<21
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ enum34==1.1.10 \
--hash=sha256:c3858660960c984d6ab0ebad691265180da2b43f07e061c0f8dca9ef3cffd328 \
--hash=sha256:cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248
# via -r requirements.in
java-api==17.26.5 \
--hash=sha256:9bb74897b0838d6e87a8dc118a56c284fdf660f9db2f2dfbe5b95b672af9cf1e \
--hash=sha256:bf68ebcd91e9c8ea222fed6e13e989745eecc2ae8679984b9a9a3b03c1a64edb
java-api==17.26.6 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Published installs can select incompatible dependencies

When a consumer installs the published package without this repository's lockfile and an incompatible java-api release is available, setup.cfg leaves java-api unconstrained, so the resolver can select a release outside the locked and tested version, and consumers can encounter incompatible dependency behavior.

Add the intended compatibility bound for java-api to setup.cfg.

Prompt for AI agents
In `requirements.txt` at line 12:

**Published installs can select incompatible dependencies**

When a consumer installs the published package without this repository's lockfile and an incompatible `java-api` release is available, `setup.cfg` leaves `java-api` unconstrained, so the resolver can select a release outside the locked and tested version, and consumers can encounter incompatible dependency behavior.

Add the intended compatibility bound for `java-api` to `setup.cfg`.

--hash=sha256:8c9a40f9626930420b4cf3b97ebfe5f91acf3c02416ab89e7296bddbc1cfb93b \
--hash=sha256:d15c289b169f2b6339c69d09870a4c966e18850db415d448727cc626db4153a1
# via -r requirements.in
typing==3.10.0.0 \
--hash=sha256:12fbdfbe7d6cca1a42e485229afcb0b0c8259258cfb919b8a5e2a5c953742f89 \
Expand Down
2 changes: 1 addition & 1 deletion stubs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"java-api-stubs",
"java-api-stubs>17,<21",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Newer Java APIs pass type checks

When a compatible java-api-stubs 18–20 release becomes available and a consumer resolves dependencies without the repository lock, ignition-api-stubs accepts java-api-stubs versions 18–20, so a resolver can install stubs for APIs unavailable in Ignition 8.1's Java 17 runtime; downstream type checks then accept scripts that fail when run.

Constrain the published dependency to Java 17-compatible releases, for example with an upper bound below 18.

Prompt for AI agents
In `stubs/pyproject.toml` at line 39:

**Newer Java APIs pass type checks**

When a compatible `java-api-stubs` 18–20 release becomes available and a consumer resolves dependencies without the repository lock, `ignition-api-stubs` accepts `java-api-stubs` versions 18–20, so a resolver can install stubs for APIs unavailable in Ignition 8.1's Java 17 runtime; downstream type checks then accept scripts that fail when run.

Constrain the published dependency to Java 17-compatible releases, for example with an upper bound below 18.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Published installs float Java API versions

When the published package is installed or the tox typecheck environment is run, when users install the published main package or CI runs the typecheck environment, setup.cfg leaves java-api unconstrained and tox.ini fetches java-api-stubs from a Git URL without a revision, so those paths can resolve different upstream versions despite the new stub-package range and locks.

Constrain the main package dependency and pin the tox Git dependency to a version or commit consistent with the checked-in locks.

Prompt for AI agents
In `stubs/pyproject.toml` at line 39:

**Published installs float Java API versions**

When the published package is installed or the tox typecheck environment is run, when users install the published main package or CI runs the typecheck environment, `setup.cfg` leaves `java-api` unconstrained and `tox.ini` fetches `java-api-stubs` from a Git URL without a revision, so those paths can resolve different upstream versions despite the new stub-package range and locks.

Constrain the main package dependency and pin the tox Git dependency to a version or commit consistent with the checked-in locks.

"types-enum34",
]
urls.Documentation = "https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions"
Expand Down
2 changes: 1 addition & 1 deletion stubs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --config-file=uv.toml pyproject.toml
java-api-stubs==17.26.5
java-api-stubs==17.26.6
# via ignition-api-stubs (pyproject.toml)
types-enum34==1.1.8
# via ignition-api-stubs (pyproject.toml)
Loading