Skip to content

CI: a better type error information to find the key point #1254

Description

@Zeroto521

Is your feature request related to a problem? Please describe.

If stubs.yml CI fails, it only shows "Baseline test files are out of date, run: ./stubs/baseline.sh on Python 3.14 to update". It's hard to find the problem.

- name: Check baseline test files are up to date
run: |
./stubs/baseline.sh
# we need to ignore the .deb file we download above
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
echo "Baseline test files are out of date, run: ./stubs/baseline.sh on Python ${{ env.PYTHON_VERSION }} to update"
exit 1
fi

Describe the solution you'd like

Add a git diff commnad for stubs.yml like

./stubs/baseline.sh
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
  echo "Baseline test files are out of date. Diff:"
  git --no-pager diff -- tests/@types/   # ← here, show the difference
  exit 1
fi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions