Skip to content

[Cherry-Pick][BugFix] Fix ErrorInfo code type(#6951)#6952

Merged
Jiang-Jia-Jun merged 1 commit intoPaddlePaddle:release/2.5from
EmmonsCurse:cherry-pick/6951/release/2.5
Mar 20, 2026
Merged

[Cherry-Pick][BugFix] Fix ErrorInfo code type(#6951)#6952
Jiang-Jia-Jun merged 1 commit intoPaddlePaddle:release/2.5from
EmmonsCurse:cherry-pick/6951/release/2.5

Conversation

@EmmonsCurse
Copy link
Collaborator

Cherry-pick of #6951 (authored by @sunlei1024) to release/2.5.

devPR:#6951


Motivation

This PR fixes a type error caused by inconsistent data types in the ErrorInfo.code field. The field expects a string type, but an integer was previously provided, leading to type validation or runtime issues.

Modifications

  • Updated one line of code to ensure correct type usage:

  • Changed code=0 to code='0' in ErrorInfo.

  • This ensures consistency with the expected schema and avoids type-related errors.

Usage or Command

manually trigger the related API / functionality to confirm no type error is raised.

Accuracy Tests

This change does not affect model outputs or accuracy.

Checklist

  • Add at least a tag in the PR title. ([BugFix])
  • Format your code, run pre-commit before commit.
  • Add unit tests. (Not added since this is a trivial one-line fix)
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Mar 20, 2026

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Mar 20, 2026
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/2.5@56afe25). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             release/2.5    #6952   +/-   ##
==============================================
  Coverage               ?   67.82%           
==============================================
  Files                  ?      389           
  Lines                  ?    53403           
  Branches               ?     8377           
==============================================
  Hits                   ?    36219           
  Misses                 ?    14558           
  Partials               ?     2626           
Flag Coverage Δ
GPU 67.82% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 692733b into PaddlePaddle:release/2.5 Mar 20, 2026
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants