Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Fix docbuilder - make BackboneMixin and BackboneConfigMixin importable from utils. #29002

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

amyeroberts
Copy link
Collaborator

@amyeroberts amyeroberts commented Feb 13, 2024

What does this PR do?

Several CIs have started having the doc builds failing e.g.:

On one case rerunning lead to a successful build:

However, trying this on other runs wasn't successful e.g.:

I haven't been able to identify why these tests have started failing. Obvious dependencies haven't been affected:

  • backbones.md was touched two weeks ago
  • Latest update to doc-builder was two weeks ago
  • backbone_utils was updated three weeks ago

This PR moves the offending backbone classes to be importable from utils. This was to match all other ~utils references in the doc, which have the form ~utils.module.object.

Doing this appears to have resolved the issue:

  • Two runs on the same commit on github CI have passed - run 1, run 2
  • Another run on a different, empty commit passed - here

@amyeroberts amyeroberts marked this pull request as ready for review February 13, 2024 15:46
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@amyeroberts amyeroberts changed the title [DO NOT MERGE] Trigger doc build [Doc] Fix docbuilder - make BackboneMixin and BackboneConfigMixin importable from utils. Feb 13, 2024
@amyeroberts
Copy link
Collaborator Author

cc @ydshieh

@amyeroberts
Copy link
Collaborator Author

I'm merging as this is quite urgent for resolving failing tests on main

@amyeroberts amyeroberts merged commit 7252e8d into huggingface:main Feb 14, 2024
21 checks passed
@amyeroberts amyeroberts deleted the test-build-documentation branch February 14, 2024 10:29
sbucaille pushed a commit to sbucaille/transformers that referenced this pull request Feb 14, 2024
…n` importable from `utils`. (huggingface#29002)

* Trigger doc build

* Test removing references

* Importable from utils

* Trigger another run on a new commit for testing
itazap pushed a commit that referenced this pull request May 14, 2024
…n` importable from `utils`. (#29002)

* Trigger doc build

* Test removing references

* Importable from utils

* Trigger another run on a new commit for testing
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.

2 participants