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

Build: check if the output directory is a directory #9939

Closed
wants to merge 1 commit into from

Conversation

humitos
Copy link
Member

@humitos humitos commented Jan 25, 2023

It checks for _readthedocs/<format> output directory to be a directory. If it's not a directory, it silently skip that format for now. This behavior will change once we move out store_build_artifacts from on_success and we can communicate errors easily to the user.

Related #9931

It checks for `_readthedocs/<format>` output directory to be a directory.
If it's not a directory, it silently skip that format for now.
This behavior will change once we move out `store_build_artifacts` from
`on_success` and we can communicate errors easily to the user.

Related #9931
@humitos humitos requested a review from a team as a code owner January 25, 2023 11:25
@humitos humitos requested a review from stsewd January 25, 2023 11:25
@humitos humitos requested review from ericholscher and removed request for stsewd January 25, 2023 13:01
version=self.data.version.slug,
type_=artifact_type,
)
if os.path.isdir(artifact_directory):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want this to be a directory? Won't we basically be checking if _readthedocs/pdf is a directory, which we want? I think we want to check it's not a directory, and if it has multiple files in it, if it is?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. You already found that I've already solve this problem in the following PR.

@humitos humitos closed this Jan 26, 2023
@humitos
Copy link
Member Author

humitos commented Jan 26, 2023

I closed this PR. We are continuing the conversation in #9941

@stsewd stsewd deleted the humitos/build-output-isdir-check branch January 26, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants