Fix Smart CI workspace destruction in smart-ci composite action#74
Draft
Fix Smart CI workspace destruction in smart-ci composite action#74
Conversation
Co-authored-by: akashchi <65596953+akashchi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI failure in Manylinux 2_28 Smart_CI job
Fix Smart CI workspace destruction in smart-ci composite action
Mar 6, 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.
Two checkout steps inside
.github/actions/smart-ci/action.ymlwere sequentially wiping the workspace (defaultclean: true), deleting the composite action's own files before later steps could use them — causing every PR'sSmart_CIjob to fail withCan't find 'action.yml' under '.github/actions/smart-ci'.Changes
checkout wait-for-check action: Addedpath: _wait_for_check_srcso the cross-repo checkout (openvinotoolkit/openvino) targets a subdirectory instead of reinitializing the workspace root. Updated the downstreamuses:to./_wait_for_check_src/.github/actions/wait-for-check-completion.checkout components file: Addedclean: falseto preserve existing workspace files when sparse-checking out.github/components.ymlfrom the current repo.Tickets:
AI Assistance:
requirements.txtwas needed). Fix reviewed with automated code review and CodeQL; no issues found. Human validation pending re-run of the affected workflow.Original prompt
This section details on the original issue you should resolve
<issue_title>CI Failure DoctorCI Failure Investigation - Run #31 - Manylinux 2_28 Smart_CI Job Failure</issue_title>
<issue_description>## Summary
The Manylinux 2_28 workflow (run #31) failed on PR #63 (dependabot bump of
actions/download-artifact7.0.0 → 8.0.0). The failure is unrelated to the PR change itself — it is a pre-existing CI configuration issue in theSmart_CIjob.Failure Details
5b107e94dd270402610c38c13e8d26dadcb259efpull_request(PR Bump actions/download-artifact from 7.0.0 to 8.0.0 #63, base:master)Smart_CI(job65374704089)Root Cause Analysis
The
Smart_CIjob performs a sparse checkout of.github/components.ymlfromakashchi/openvinousing theababushk/checkoutaction withclean: true. This operation deletes the entire workspace contents before checking out only the single file, destroying the previously-checked-out local actions including.github/actions/smart-ci.When the workflow subsequently tries to invoke the local action
.github/actions/smart-ci, GitHub Actions cannot find it:Key sequence in
.github/workflows/manylinux_2_28.yml→Smart_CIjob:actions/checkoutchecks out the PR branch (full workspace available ✅)ababushk/checkoutsparse-checks out.github/components.ymlfromakashchi/openvinowithclean: true— overwrites workspace ❌.github/actions/smart-ciis now missing → failureFailed Jobs and Errors
Smart_CICan't find 'action.yml' under '.github/actions/smart-ci'DockerBuildPython API testsNodeJS API testsci/gha_overall_status_manylinux_2_28Investigation Findings
actions/download-artifact7 → 8) is a minor version bump in a GitHub Actions step, not the cause of this failure.Smart_CIjob would fail on any PR against this repository because the sparse-checkout step destroys the local action files needed by subsequent steps.triagecheck completed withskippedconclusion, which triggered a##[warning]Checks completed with mixed conclusions: mixedbefore proceeding — this is benign.Recommended Actions
Smart_CIjob: Change the sparse-checkout step to use a separate path/directory (e.g.,path: /tmp/components-checkout) instead of the default workspace, so the primary checkout is not overwritten.pathparameter to theababushk/checkoutstep so it checks out to a subdirectory, e.g.:/tmp/components/.github/components.yml.Prevention Strategies
actions/checkoutsteps in a single job, always use thepathparameter to direct secondary checkouts to non-overlapping directories.clean: truecheckout steps that are not the first step in a job — these will overwrite the workspace.AI Team Self-Improvement
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.