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

Improve Kaggle kernel downloading and workflow #22

Merged
merged 3 commits into from
Jul 28, 2024
Merged

Improve Kaggle kernel downloading and workflow #22

merged 3 commits into from
Jul 28, 2024

Conversation

maxisoft
Copy link
Owner

  • Refactored get_kernels function: Optimized kernel retrieval for improved performance and memory usage.
  • Enhanced kernel download post-processing: Added functionality to rename kernel folders and verify private kernel status based on updated metadata.
  • Updated doit.yml workflow: Modified the workflow to include additional checks and improvements for Kaggle archiving.

These changes collectively enhance the overall efficiency and reliability of the kernel downloading process.

This commit updates the doit.yml workflow with the following changes:

* Moved logic to bash for disabling Kaggle archiving.
* Added checks for missing secrets (ARCHIVE_PASSWORD).
* Improved error handling for private repository cloning.
* temporary directories cleanup improvement.
This commit introduces significant improvements to the `main.py` script, focusing on post-download processing:

* **New `fix_kernel_folder` function:** Handles kernel folder renaming and location based on updated data from "kernel-metadata.json".
* **Double-check private kernels:** Ensures accurate handling of private kernels after download by comparing with metadata.
* **Improved code organization:** Refactored logic for downloading and processing kernels for better readability.
* **Enhanced maintainability:** Improved type annotations and variable naming.
* **Typos and code refinement:** Fixed typos and implemented minor code improvements.
@maxisoft maxisoft self-assigned this Jul 28, 2024
@maxisoft maxisoft merged commit 971387a into main Jul 28, 2024
6 checks passed
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.

1 participant