Repository navigation
ci(deps): bump coatl-dev actions and workflows - #105
Conversation
pin java-api dependency
Reviewer's GuideConfigurationUpdate the Coatl workflows and actions to newer pinned releases.
Pin the Java API dependency range and update its resolved versions in the requirements files.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="requirements.txt" line_range="12" />
<code_context>
-java-api==17.26.5 \
- --hash=sha256:9bb74897b0838d6e87a8dc118a56c284fdf660f9db2f2dfbe5b95b672af9cf1e \
- --hash=sha256:bf68ebcd91e9c8ea222fed6e13e989745eecc2ae8679984b9a9a3b03c1a64edb
+java-api==17.26.6 \
+ --hash=sha256:8c9a40f9626930420b4cf3b97ebfe5f91acf3c02416ab89e7296bddbc1cfb93b \
+ --hash=sha256:d15c289b169f2b6339c69d09870a4c966e18850db415d448727cc626db4153a1
</code_context>
<issue_to_address>
**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`.
</issue_to_address>
### Comment 2
<location path="stubs/pyproject.toml" line_range="39" />
<code_context>
]
dependencies = [
- "java-api-stubs",
+ "java-api-stubs>17,<21",
"types-enum34",
]
</code_context>
<issue_to_address>
**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.
</issue_to_address>
### Comment 3
<location path="stubs/pyproject.toml" line_range="39" />
<code_context>
]
dependencies = [
- "java-api-stubs",
+ "java-api-stubs>17,<21",
"types-enum34",
]
</code_context>
<issue_to_address>
**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.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 3 findings to address first, and the updated upload action runs during releases with PyPI API tokens, so a faulty change could expose credentials or publish an unintended package. Reverting prevents future runs but cannot undo a leaked token or an already-published release.
Blocking findings: requirements.txt:12, stubs/pyproject.toml:39, stubs/pyproject.toml:39
| java-api==17.26.5 \ | ||
| --hash=sha256:9bb74897b0838d6e87a8dc118a56c284fdf660f9db2f2dfbe5b95b672af9cf1e \ | ||
| --hash=sha256:bf68ebcd91e9c8ea222fed6e13e989745eecc2ae8679984b9a9a3b03c1a64edb | ||
| java-api==17.26.6 \ |
There was a problem hiding this comment.
🟡 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`.| ] | ||
| dependencies = [ | ||
| "java-api-stubs", | ||
| "java-api-stubs>17,<21", |
There was a problem hiding this comment.
🟡 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.| ] | ||
| dependencies = [ | ||
| "java-api-stubs", | ||
| "java-api-stubs>17,<21", |
There was a problem hiding this comment.
🟡 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.
pin java-api dependency
Summary by Sourcery
Update CI dependencies and pin the Java API package versions for consistent builds and publishing.
Enhancements:
CI: