Skip to content

fix(ci): fix failing workflows, align tooling with azureml-example - #46

Merged
lpm0073 merged 1 commit into
mainfrom
alpha
Nov 18, 2026
Merged

lpm0073 merged 1 commit into
mainfrom
alpha

Conversation

@lpm0073

@lpm0073 lpm0073 commented Nov 18, 2026

Copy link
Copy Markdown
Member

Pull Request Template

Type of Change

  • New feature
  • Bug fix
  • Documentation
  • Refactor
  • Chore

Resolves

  • None.

Changes

Three GitHub Actions workflows failed on every run because they were copied from the azureml-example template and referred to files this repository doesn't have. This pull request fixes them, and brings the rest of the tooling (pre-commit, Makefile, semantic-release, commitlint, requirements) in line with azureml-example, which shares the template and has already been modernized. It also adds Agent Skills for working on the repository with a coding agent.

fix(ci): fix failing workflows, align tooling with azureml-example (e4f48a9)

The failures

Workflow Error Fix
pre-commit Version Bumps requirements/prod.txt doesn't exist (an earlier run failed on git checkout alpha) Checks out alpha directly; installs only pre-commit, pinned in requirements/local.txt
Semantic Version Bump cd azure_ai/ fails: there is no Python package here Deleted: there is no __version__.py to bump
Release node-version: latest resolved to Node 27 alpha, which semantic-release refuses to run on Rewritten from azureml-example: push to main, Node lts/*

Workflows (.github/workflows/, .github/actions/)

  • release.yml: azureml-example's version. semantic-release with the PAT secret, skips its own chore(release) commit, pushes the major version branch.
  • precommitVersionBumps.yml: Python 3.13, writes step outputs to $GITHUB_OUTPUT instead of the removed set-output command.
  • test.yml: there are no unit tests, so job pre-commit runs every hook on every file, on pull_request instead of pull_request_target.
  • auto-assign.yml: copied from azureml-example.
  • Deleted pushMain.yml (a second semantic-release on every push to main), pullRequestController.yml (pull_request_target, tests for code that doesn't exist), semanticVersionBump.yml, and the tests/pre-commit and tests/python composite actions.
  • dependabot.yml: pip updates now watch requirements/ instead of requirements/in/, so the compiled pins no longer fall behind.

Lint and format

  • .pre-commit-config.yaml: azureml-example's hooks and revisions on Python 3.13, with the commit-msg hook installed by default. The eslint hook for a nonexistent client/ folder and the duplicated hooks are gone.
  • pyproject.toml (new): the isort hook reads --settings-path=pyproject.toml, which didn't exist. It also holds the black settings.
  • .flake8, .codespellrc (new), .prettierrc.json and commitlint.config.js match azureml-example. mypy.ini no longer loads an uninstalled Django plugin.

semantic-release, npm and the Makefile

  • release.config.js: azureml-example's configuration (conventionalcommits preset; docs, test, style and refactor commits make no release; no CI skip instruction in the release commit).
  • package.json: the unused gulp, gulp-cli, yarn and typescript are dropped.
  • Makefile: restructured like azureml-example. The test, test-ci and lint targets that ran against azure_ai/ are gone; lint runs the pre-commit hooks.

Requirements

  • base.in and local.in list packages without version pins; constraints.in no longer has any constraints, which were template leftovers. filelock>=4 had conflicted with the old virtualenv that the tox pin held back.
  • base.txt and local.txt were recompiled on Python 3.13 with upgrades. The old base.txt was missing ipykernel.

Agent Skills

  • Seven ai-algorithms-* skills in skills/ (.claude/skills is a symlink), a skills/README.md and CLAUDE.md, in the same layout as azureml-example.

Testing

  • Every pre-commit hook passes on every tracked and new file (the check the new test.yml runs), run locally on Python 3.13.
  • pip-compile resolves base.in and local.in with no constraints.
  • Not tested: the workflows haven't run on GitHub yet; this pull request's pre-commit check is their first run. No notebook has been run against the upgraded packages (pandas 3 in particular).

Screenshots

None: no visible change.

Dependencies

Upgraded pins in requirements/base.txt and requirements/local.txt, including:

  • pandas 2.3.3 → 3.1.1
  • kaggle 1.7.4.5 → 2.2.5
  • scikit-learn 1.7.2 → 1.9.1
  • shap 0.50.0 → 0.54.1
  • pre-commit 4.2.0 → 4.7.0

No new secrets: the workflows use the existing PAT. Rebuild the local venv afterwards with make init.

Breaking Changes

  • make test and make test-ci are removed: there are no tests to run.
  • The workflows Push to main, Pull Request Controller and Semantic Version Bump (next) are removed. If main's branch rules require a check from one of them, replace it with pre-commit.
  • pandas 3 changes some defaults (copy-on-write, the string dtype); notebooks may need small updates.

🤖 Generated with Claude Code

Three GitHub Actions workflows failed on every run because they were copied from the azureml-example template and referred to files this repository doesn't have. pre-commit Version Bumps installed requirements/prod.txt, which doesn't exist (an earlier run failed on git checkout alpha). Semantic Version Bump ran cd azure_ai/, but there is no Python package here. Release ran on pull_request_target with node-version latest, which resolved to Node 27 alpha, and semantic-release refuses to run on it. azureml-example has since been modernized, so this commit brings ai-algorithms' tooling in line with it.

Workflows (.github/workflows/, .github/actions/):

- release.yml: replaced with azureml-example's version. semantic-release runs on push to main with the PAT secret, on Node lts/* rather than latest, skips its own chore(release) commit, and pushes the major version branch.
- precommitVersionBumps.yml: checks out alpha directly, installs only pre-commit at the version requirements/local.txt pins, on Python 3.13, and writes step outputs to GITHUB_OUTPUT instead of the removed set-output command.
- test.yml: this repository has no unit tests, so the job (now named pre-commit) runs every pre-commit hook on every file, on pull_request rather than pull_request_target.
- auto-assign.yml: copied from azureml-example (pinned action SHA, read-only permissions, timeout).
- Deleted pushMain.yml (a second semantic-release on every push to main), pullRequestController.yml (pull_request_target, tests for code that doesn't exist), semanticVersionBump.yml (no __version__.py to bump) and the tests/pre-commit and tests/python composite actions (they expected dev.txt, prod.txt and azureml-core).
- dependabot.yml: pip updates now watch requirements/ instead of requirements/in/, so Dependabot changes the compiled pins rather than leaving the txt files behind the in files.

Lint and format configuration:

- .pre-commit-config.yaml: same hooks and revisions as azureml-example on Python 3.13, with the commit-msg hook installed by default. The eslint hook for a nonexistent client/ folder and duplicated hooks are gone.
- pyproject.toml (new): the isort hook passes --settings-path=pyproject.toml, so it failed without this file. It also holds the black settings (line length 120, py313) and project metadata.
- .flake8 and .codespellrc (new), .prettierrc.json (printWidth 120) and commitlint.config.js are copied from azureml-example. mypy.ini no longer loads a Django plugin that isn't installed.
- CHANGELOG.md: one trailing blank line removed by Prettier.

semantic-release and npm:

- release.config.js: azureml-example's configuration (branches main, next, beta, alpha; conventionalcommits preset; docs, test, style and refactor commits make no release), without the azure_ai version file asset. The release commit carries no CI skip instruction.
- package.json: only semantic-release, its plugins and Prettier. The unused gulp, gulp-cli, yarn and typescript are dropped.

Makefile:

- Restructured like azureml-example (init, check-python, python-init, python-clean, python-requirements, pre-commit-init, pre-commit-run, lint, analyze, release, help). The test, test-ci and lint targets that ran against azure_ai/ are gone; lint runs the pre-commit hooks. .env is now created from .env.example.

Requirements (requirements/):

- base.in and local.in list packages without version pins; pip-compile pins them. local.in now names pre-commit, which CI installs.
- constraints.in no longer has any constraints. Its ranges were template leftovers, and filelock 4 conflicted with the old virtualenv that the tox pin held back. base.txt and local.txt now compile cleanly without them.
- base.txt and local.txt were recompiled on Python 3.13 with upgrades, including pandas 3.1, kaggle 2.2, scikit-learn 1.9 and shap 0.54. The old base.txt was missing ipykernel altogether.

Agent Skills (skills/, .claude/skills symlink, CLAUDE.md):

- Seven ai-algorithms skills (development, notebooks, python-environment, code-quality, ci, git-commits, pull-requests) and a README, in the same layout as azureml-example. They record the rules for working on this repository with a coding agent: no git writes, no Kaggle or Azure cells without the maintainer's OK, no triggering workflows or releases. .gitignore keeps .claude/settings.local.json out of the repository.

Verified: every pre-commit hook passes on every tracked and new file, which is what the new test.yml runs. pip-compile resolves base.in and local.in with no constraints. Not verified: the workflows haven't run on GitHub yet, and no notebook has been run against the upgraded packages (pandas 3 in particular). The scheduled pre-commit job keeps failing until this reaches main. Main's branch rules may need the new pre-commit check, and Dependabot pull requests 43 to 45 edit constraints that no longer exist.

Co-authored-by: Lawrence McDaniel <lpm0073@gmail.com>
@lpm0073
lpm0073 merged commit 54e9298 into main Nov 18, 2026
3 checks passed
@lpm0073

lpm0073 commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 0.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants