Skip to content

Automate dataset generation and decouple Hugging Face sync#30

Merged
MrOrz merged 11 commits intomasterfrom
feat/automate-dataset-generation-12801888251781349117
Mar 5, 2026
Merged

Automate dataset generation and decouple Hugging Face sync#30
MrOrz merged 11 commits intomasterfrom
feat/automate-dataset-generation-12801888251781349117

Conversation

@MrOrz
Copy link
Copy Markdown
Member

@MrOrz MrOrz commented Mar 5, 2026

Implements automated weekly dataset generation as per user request.

Modifies .github/workflows/opendata.yml to:

  • Trigger on a weekly schedule (0 0 * * 1).
  • Pass the snapshot date as an output from the primary data generation job.
  • Use an independent job to automatically update README.md with the new snapshot date and commit the changes.
  • Use another independent job to upload the generated dataset CSV files to Hugging Face via the huggingface-cli.

Updates README.md to establish the HTML comment block tracking the snapshot date.


PR created automatically by Jules for task 12801888251781349117 started by @MrOrz

    * Update `README.md` to track the latest snapshot date.
    * Add `schedule` trigger for cron `0 0 * * 1` to `.github/workflows/opendata.yml`.
    * Output the snapshot date from the `generate-opendata` job.
    * Extract "Update README" and "Upload to Hugging Face" processes into independent `update-readme` and `upload-dataset` jobs, respectively.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces significant automation to the dataset generation and publication process. It establishes a weekly schedule for creating new datasets, automatically updates the repository's README with the latest snapshot date, and independently handles the synchronization of these datasets with Hugging Face. These changes streamline maintenance, enhance data currency, and reduce manual intervention for data releases.

Highlights

  • Automated Dataset Generation: Implemented automated weekly dataset generation to ensure data freshness and consistency.
  • Decoupled Hugging Face Sync: The process of uploading datasets to Hugging Face has been decoupled into an independent job, improving modularity and reliability.
  • Workflow Enhancements: The .github/workflows/opendata.yml workflow was updated to trigger weekly, pass snapshot dates between jobs, and include dedicated jobs for README updates and Hugging Face uploads.
  • README.md Snapshot Tracking: The README.md file now includes an HTML comment block to automatically track and display the latest dataset snapshot date.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Added a new line to display the latest dataset snapshot date, enclosed within HTML comment tags for automated updates.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/opendata.yml
Activity
  • PR created automatically by Jules for task 12801888251781349117 started by @MrOrz.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

    * Update `README.md` to track the latest snapshot date.
    * Add `schedule` trigger for cron `24 16 * * 0` (Monday 00:24 Taiwan time) to `.github/workflows/opendata.yml`.
    * Output the snapshot date from the `generate-opendata` job.
    * Extract "Update README" and "Upload to Hugging Face" processes into independent `update-readme` and `upload-dataset` jobs, respectively.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request automates the weekly dataset generation and decouples the Hugging Face synchronization. The changes include modifying the GitHub Actions workflow and updating the README.md to display the latest dataset snapshot date. My review focuses on the README.md change, suggesting an improvement to the placeholder date for better clarity.

Note: Security Review has been skipped due to the limited scope of the PR.

Comment thread README.md Outdated
@MrOrz MrOrz marked this pull request as ready for review March 5, 2026 03:16
@MrOrz MrOrz self-assigned this Mar 5, 2026
@MrOrz MrOrz requested review from bil4444 and nonumpa March 5, 2026 03:16
@MrOrz MrOrz linked an issue Mar 5, 2026 that may be closed by this pull request
4 tasks
github-actions Bot and others added 9 commits March 5, 2026 03:32
    * Revert incorrect python module invocation for huggingface-cli.
    * Add `actions/setup-python@v5` to `upload-dataset` job before `pip install` to properly configure Python and the path, ensuring `huggingface-cli` is found during execution on `ubuntu-latest`.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
    * Revert `hf` binary to user-requested `huggingface-cli`.
    * Update python package installation step to explicitly install `huggingface_hub[cli]<0.25.0` to preserve the availability of the `huggingface-cli` executable. Versions >=0.25 deprecated it in favor of `hf`.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
    * Replace `pip install huggingface_hub[cli]` step with `astral-sh/setup-uv@v5`.
    * Update the `huggingface-cli` command to be run via `uvx --from huggingface_hub huggingface-cli upload`.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
    * Modify `uvx` command to specifically use `huggingface_hub[cli]<0.25.0` since `huggingface-cli` was removed in v0.25+ and renamed to `hf`.
    * Set `enable-cache: false` in `astral-sh/setup-uv@v5` to prevent GitHub Actions warnings when no Python lockfiles/requirements are found in the repository.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
    * Modify `uvx` command to use the modern `hf` executable from the `huggingface_hub` package, correctly matching latest upstream changes instead of pinning deprecated `<0.25` versions.

Co-authored-by: MrOrz <108608+MrOrz@users.noreply.github.com>
@MrOrz
Copy link
Copy Markdown
Member Author

MrOrz commented Mar 5, 2026

@MrOrz MrOrz merged commit 1e5257d into master Mar 5, 2026
1 check passed
@MrOrz MrOrz mentioned this pull request Mar 5, 2026
4 tasks
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.

Scheduled deploy to huggingface

1 participant