Skip to content

ci(deps): bump coatl-dev actions and workflows - #105

Merged
cesarcoatl merged 1 commit into
8.1from
8.1-ci/deps/bump-coatl-dev-actions-workflows
Nov 16, 2026
Merged

cesarcoatl merged 1 commit into
8.1from
8.1-ci/deps/bump-coatl-dev-actions-workflows

Conversation

@cesarcoatl

@cesarcoatl cesarcoatl commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

pin java-api dependency

Summary by Sourcery

Update CI dependencies and pin the Java API package versions for consistent builds and publishing.

Enhancements:

  • Pin the Java API dependency range and update the Java API packages to version 17.26.6.

CI:

  • Update Coatl Dev reusable CI workflows and PyPI publishing actions to newer releases.

@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Update the Coatl workflows and actions to newer pinned releases.

  • .github/workflows/ci.yml L13, L22
  • .github/workflows/publish.yml L23, L28
  • .github/workflows/tox.yml L10, L15

Pin the Java API dependency range and update its resolved versions in the requirements files.

  • requirements.in L2
  • requirements.txt L12-14
  • stubs/pyproject.toml L39
  • stubs/requirements.txt L3

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

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.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread requirements.txt
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`.

Comment thread stubs/pyproject.toml
]
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.

Comment thread stubs/pyproject.toml
]
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 · 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.

@cesarcoatl
cesarcoatl merged commit 001ad91 into 8.1 Nov 16, 2026
5 checks passed
@cesarcoatl
cesarcoatl deleted the 8.1-ci/deps/bump-coatl-dev-actions-workflows branch November 16, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant