Skip to content

Commit 1324c8b

Browse files
Merge pull request #4474 from AI-Hypercomputer:fix/notebook-ci-logic
PiperOrigin-RevId: 948397174
2 parents 8236e1e + 260d626 commit 1324c8b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci_pipeline.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
if echo "$CHANGED_FILES" | grep -E '(^|/)(src/dependencies/|\.github/workflows/)' > /dev/null; then
9898
echo "Core files (dependencies, workflows) changed, enabling all tests and notebooks."
9999
echo "run_tests=true" >> $GITHUB_OUTPUT
100-
echo "run_notebooks=true" >> $GITHUB_OUTPUT
100+
# TODO: Temporarily disabled because notebook jobs are blocked; revert to "run_notebooks=true" after the fix is merged.
101+
echo "run_notebooks=false" >> $GITHUB_OUTPUT
101102
exit 0
102103
fi
103104
@@ -110,21 +111,20 @@ jobs:
110111
111112
# 4. Check for source code changes (anything not .md and not .ipynb)
112113
if echo "$CHANGED_FILES" | grep -v -E '\.(md|ipynb)$' > /dev/null; then
113-
echo "Source code changed, enabling unit tests and notebooks."
114+
echo "Source code changed, enabling unit tests."
114115
echo "run_tests=true" >> $GITHUB_OUTPUT
115-
echo "run_notebooks=true" >> $GITHUB_OUTPUT
116116
else
117117
echo "No source code changes (only notebook/doc), skipping unit tests."
118118
echo "run_tests=false" >> $GITHUB_OUTPUT
119+
fi
119120
120-
# 5. Check for notebook (.ipynb) changes
121-
if echo "$CHANGED_FILES" | grep '\.ipynb$' > /dev/null; then
122-
echo "Notebook files changed, enabling notebook run."
123-
echo "run_notebooks=true" >> $GITHUB_OUTPUT
124-
else
125-
echo "No notebook changes, skipping notebook run."
126-
echo "run_notebooks=false" >> $GITHUB_OUTPUT
127-
fi
121+
# 5. Check for notebook (.ipynb) changes
122+
if echo "$CHANGED_FILES" | grep '\.ipynb$' > /dev/null; then
123+
echo "Notebook files changed, enabling notebook run."
124+
echo "run_notebooks=true" >> $GITHUB_OUTPUT
125+
else
126+
echo "No notebook changes, skipping notebook run."
127+
echo "run_notebooks=false" >> $GITHUB_OUTPUT
128128
fi
129129
130130
code_quality_check:

0 commit comments

Comments
 (0)