Repository navigation
Conversation
publish_orcjit_wheel.yml was copy-pasted from the main-package publish_wheel.yml and inherited a `tag` workflow_dispatch input wired into the build-orcjit-wheel action's checkout_ref. The OrcJIT addon (apache-tvm_ffi_orcjit) is a standalone package versioned by its own addons/tvm_ffi_orcjit/pyproject.toml, independent of the tvm-ffi repo tags, so the tag was never a version source -- only a (wrong) checkout source. Dispatching the workflow with an old tag (e.g. v0.1.0, which predates the addon) made the action check out a tree with no addon, and cibuildwheel failed with "Could not find ... pyproject.toml" (run 27092992406). Remove the tag input and pin checkout_ref to main, so the publish always builds the current addon source; the wheel version comes from its pyproject.toml. The build-orcjit-wheel action keeps its checkout_ref input because ci_test.yml's orcjit job still uses it to build the addon at the PR head SHA.
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
tqchen
approved these changes
Jun 8, 2026
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.
Problem
The Publish OrcJIT wheel workflow failed on its last manual run
(run 27092992406,
dispatched with
tag: v0.1.0). All four build legs failed with:Root cause
publish_orcjit_wheel.ymlwas copy-pasted from the main-packagepublish_wheel.ymland inherited atagworkflow_dispatchinput wired into thebuild-orcjit-wheelaction'scheckout_ref. The composite action then does an inneractions/checkout { ref: <tag> }that replaces the working tree with the repostate at that tag.
But the OrcJIT addon (
apache-tvm_ffi_orcjit) is a standalone package, versionedby its own
addons/tvm_ffi_orcjit/pyproject.toml(currently0.1.0), independent ofthe tvm-ffi repo tags. The addon was added in #254 (2026-03-27) and first appears in
tag
v0.1.10. Dispatching with any older tag —v0.1.0here — checks out a tree withno addon directory, so cibuildwheel finds no
pyproject.toml. (The overwrite alsoclobbers the action's own
action.yml, producing the confusing secondary"Can't find 'action.yml'" post-step error.)
The repo tag was never the addon's version source — only a (wrong) checkout source.
Fix
Single-file change to
publish_orcjit_wheel.yml:tagworkflow_dispatchinput.checkout_ref: main, so publish always builds the current addonsource. The wheel version comes from the addon's
pyproject.toml.The
build-orcjit-wheelaction keeps itscheckout_refinput unchanged, because theorcjitjob inci_test.ymlstill uses it (checkout_ref: ${{ github.sha }}) to buildthe addon at the PR head SHA. The action's inner
submodules: recursivecheckout isload-bearing:
CIBW_TEST_COMMANDdoespip install --force-reinstall {project}, whichrebuilds the main
apache-tvm-ffifrom the repo root and needs3rdparty/dlpack+libbacktrace.Validation
Dispatched on a fork with the patched workflow
(run 27130310085): all four
build_wheelslegs — ubuntu x86_64, ubuntu aarch64, macOS arm64, Windows AMD64 — built,tested, and uploaded wheels successfully.
upload_pypifails on the fork only because ithas no PyPI trusted-publisher mapping (
invalid-publisher); that step works onapache/tvm-ffi, which has thepypienvironment configured.actionlintpasses clean.