Skip to content

[python-package] Fix python -OO crash by guarding __doc__ assignments #3595

[python-package] Fix python -OO crash by guarding __doc__ assignments

[python-package] Fix python -OO crash by guarding __doc__ assignments #3595

Triggered via pull request March 16, 2026 21:30
Status Success
Total duration 14m 33s
Artifacts

misc.yml

on: pull_request
Configure variables for CI
11s
Configure variables for CI
Test Google C++ unittest (CPU Non-OMP)
1m 39s
Test Google C++ unittest (CPU Non-OMP)
Test installing XGBoost lib + building the C API demo
55s
Test installing XGBoost lib + building the C API demo
Build 32-bit (i386)
2m 46s
Build 32-bit (i386)
Build docs for JVM packages
12m 0s
Build docs for JVM packages
Build docs for the R package
4m 49s
Build docs for the R package
Trigger Read The Docs build
11s
Trigger Read The Docs build
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
Configure variables for CI
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: aws-actions/amazon-ecr-login@v2.0.1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Configure variables for CI
Your docker password is not masked. See https://github.com/aws-actions/amazon-ecr-login#docker-credentials for more information.
Test installing XGBoost lib + building the C API demo
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, conda-incubator/setup-miniconda@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test installing XGBoost lib + building the C API demo
The 'defaults' channel might have been added implicitly. If this is intentional, add 'defaults' to the 'channels' list. Otherwise, consider setting 'conda-remove-defaults' to 'true'.
Test Google C++ unittest (CPU Non-OMP)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, conda-incubator/setup-miniconda@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test Google C++ unittest (CPU Non-OMP)
The 'defaults' channel might have been added implicitly. If this is intentional, add 'defaults' to the 'channels' list. Otherwise, consider setting 'conda-remove-defaults' to 'true'.