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

Ensure knowledge docs are cloned into unique dirs (backport #416) #417

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 27, 2024

Previously, we were attempting to clone multiple knowledge documents into the same destination directory, leading to failures generating data for any run that contained 2+ knowledge leaf nodes.

Now, we clone docs into a guaranteed unique (via tempfile.mkdtemp) subdirectory per knowledge leaf node. Just using a subdirectory per leaf node could still have led to collisions if the user ran data generation twice within one minute, which is why this goes the extra step of using mkdtemp for guaranteed uniqueness.

Fixes #404


This is an automatic backport of pull request #416 done by Mergify.

Previously, we were attempting to clone multiple knowledge documents
into the same destination directory, leading to failures generating
data for any run that contained 2+ knowledge leaf nodes.

Now, we clone docs into a guaranteed unique (via `tempfile.mkdtemp`)
subdirectory per knowledge leaf node. Just using a subdirectory per
leaf node could still have led to collisions if the user ran data
generation twice within one minute, which is why this goes the extra
step of using `mkdtemp` for guaranteed uniqueness.

Fixes #404

Signed-off-by: Ben Browning <[email protected]>
(cherry picked from commit 823c279)
@mergify mergify bot added testing Relates to testing release-branch labels Nov 27, 2024
@bbrowning bbrowning requested a review from a team November 27, 2024 21:56
@mergify mergify bot added the one-approval label Nov 27, 2024
Copy link
Contributor

@bbrowning bbrowning left a comment

Choose a reason for hiding this comment

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

Backport looks good - thanks mergify!

@mergify mergify bot removed the one-approval label Nov 27, 2024
@mergify mergify bot merged commit c220b5f into release-v0.6 Nov 27, 2024
22 checks passed
@mergify mergify bot deleted the mergify/bp/release-v0.6/pr-416 branch November 27, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-branch testing Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants