Repository navigation
Conversation
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>
Member
Author
|
🎉 This PR is included in version 0.1.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Type of Change
Resolves
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
requirements/prod.txtdoesn't exist (an earlier run failed ongit checkout alpha)alphadirectly; installs onlypre-commit, pinned inrequirements/local.txtcd azure_ai/fails: there is no Python package here__version__.pyto bumpnode-version: latestresolved to Node 27 alpha, which semantic-release refuses to run onmain, Nodelts/*Workflows (
.github/workflows/,.github/actions/)release.yml: azureml-example's version. semantic-release with thePATsecret, skips its ownchore(release)commit, pushes the major version branch.precommitVersionBumps.yml: Python 3.13, writes step outputs to$GITHUB_OUTPUTinstead of the removedset-outputcommand.test.yml: there are no unit tests, so jobpre-commitruns every hook on every file, onpull_requestinstead ofpull_request_target.auto-assign.yml: copied from azureml-example.pushMain.yml(a second semantic-release on every push tomain),pullRequestController.yml(pull_request_target, tests for code that doesn't exist),semanticVersionBump.yml, and thetests/pre-commitandtests/pythoncomposite actions.dependabot.yml: pip updates now watchrequirements/instead ofrequirements/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 nonexistentclient/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.jsonandcommitlint.config.jsmatch azureml-example.mypy.inino 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. Thetest,test-ciandlinttargets that ran againstazure_ai/are gone;lintruns the pre-commit hooks.Requirements
base.inandlocal.inlist packages without version pins;constraints.inno longer has any constraints, which were template leftovers.filelock>=4had conflicted with the oldvirtualenvthat thetoxpin held back.base.txtandlocal.txtwere recompiled on Python 3.13 with upgrades. The oldbase.txtwas missingipykernel.Agent Skills
ai-algorithms-*skills inskills/(.claude/skillsis a symlink), askills/README.mdandCLAUDE.md, in the same layout as azureml-example.Testing
test.ymlruns), run locally on Python 3.13.pip-compileresolvesbase.inandlocal.inwith no constraints.pre-commitcheck 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.txtandrequirements/local.txt, including:No new secrets: the workflows use the existing
PAT. Rebuild the local venv afterwards withmake init.Breaking Changes
make testandmake test-ciare removed: there are no tests to run.Push to main,Pull Request ControllerandSemantic Version Bump (next)are removed. Ifmain's branch rules require a check from one of them, replace it withpre-commit.🤖 Generated with Claude Code