Skip to content

refresh src in build#3979

Open
dtrawins wants to merge 1 commit intomainfrom
win-src-fix
Open

refresh src in build#3979
dtrawins wants to merge 1 commit intomainfrom
win-src-fix

Conversation

@dtrawins
Copy link
Collaborator

@dtrawins dtrawins commented Feb 12, 2026

🛠 Summary

refresh sources in CI for each build

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@dtrawins dtrawins marked this pull request as ready for review February 17, 2026 23:22
Copilot AI review requested due to automatic review settings February 17, 2026 23:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Windows dependency install/build script to “refresh” already-cloned source repos during builds.

Changes:

  • Adds git pull --recurse-submodules after checking out OpenVINO, Tokenizers, and GenAI sources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if !errorlevel! neq 0 exit /b !errorlevel!
git submodule update --init --recursive
if !errorlevel! neq 0 exit /b !errorlevel!
git pull --recurse-submodules
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OV_SOURCE_BRANCH defaults to a specific commit SHA (detached HEAD). Running git pull in detached HEAD will fail ("You are not currently on a branch") and is also ignored here (no errorlevel check). Consider removing this pull, or only pulling when %OV_SOURCE_BRANCH% is an actual branch name; for pinned SHAs, git fetch + git checkout is sufficient and keeps builds reproducible.

Suggested change
git pull --recurse-submodules
for /f "delims=" %%i in ('git symbolic-ref --short -q HEAD 2^>nul') do set "GIT_CURRENT_BRANCH=%%i"
if defined GIT_CURRENT_BRANCH (
git pull --recurse-submodules
)

Copilot uses AI. Check for mistakes.
git fetch origin
git checkout %TOKENIZER_SOURCE_BRANCH%
if !errorlevel! neq 0 exit /b !errorlevel!
git pull --recurse-submodules
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOKENIZER_SOURCE_BRANCH defaults to a commit SHA, so this git pull will fail in detached HEAD and its failure is currently ignored (no errorlevel check). If the intent is to stay pinned, drop the pull; if the intent is to track a branch, gate the pull on being on a branch and ensure failure stops the script.

Suggested change
git pull --recurse-submodules
for /f "delims=" %%h in ('git rev-parse --abbrev-ref HEAD') do set "GIT_BRANCH=%%h"
IF /I NOT "!GIT_BRANCH!"=="HEAD" (
git pull --recurse-submodules
if !errorlevel! neq 0 exit /b !errorlevel!
)

Copilot uses AI. Check for mistakes.
git fetch origin
git checkout %GENAI_SOURCE_BRANCH%
if !errorlevel! neq 0 exit /b !errorlevel!
git pull --recurse-submodules
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GENAI_SOURCE_BRANCH defaults to a commit SHA, which puts the repo in detached HEAD; git pull will fail in that state and the script does not check errorlevel afterwards. Recommend removing this pull (fetch+checkout already refreshes) or performing a deterministic update (e.g., fetch then reset/checkout the requested ref) with proper error handling.

Suggested change
git pull --recurse-submodules

Copilot uses AI. Check for mistakes.
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

Comments