Skip to content

auto-generate CML example repos #100

Closed

Description

@casperdcl

Example repos are painful to update everywhere (e.g. iterative/cml.dev#178 touches all example repos). Should auto-generate them from one source similar to how https://github.com/iterative/example-repos-dev works.

Activity

  1. casperdcl commented on Dec 30, 2021

    @casperdcl
    ContributorAuthor
  2. transferred this issue fromiterative/cml.devon Jan 3, 2022
  3. changed the title [-]auto-generate example repos[/-] [+]auto-generate CML example repos[/+] on Jan 3, 2022
  4. iesahin commented on Jan 3, 2022

    @iesahin
    Contributor

    Moved and will be tracking here. Do you have any specific requirements for repositories? Would a simple generate.bash script suffice? @casperdcl

  5. self-assigned this
    on Jan 3, 2022
  6. iesahin commented on Jan 7, 2022

    @iesahin
    Contributor

    I think you prefer to have a single generate script for all these repositories, right? @casperdcl

  7. casperdcl commented on Jan 10, 2022

    @casperdcl
    ContributorAuthor

    Yes exactly. Reordered the list a bit to reflect that most should be based on the current https://github.com/iterative/example_cml

  8. iesahin commented on Jan 11, 2022

    @iesahin
    Contributor

    Could you select which of the repository branches you'd like to keep? @casperdcl

    I'll rename master branches to main.

    • cml_base_case_experiment
    • cml_base_case_master
    • cml_cloud_case_azure
    • cml_cloud_case_elleobrien-patch-1
    • cml_cloud_case_experiment
    • cml_cloud_case_fix-readme-typo-1
    • cml_cloud_case_master
    • cml_cloud_case_release-0.3.1
    • cml_dvc_case_commit-comment-dvc-lock
    • cml_dvc_case_commit-dvc-lock
    • cml_dvc_case_demo-dvc-lock-commit
    • cml_dvc_case_experiment
    • cml_dvc_case_experiment-1
    • cml_dvc_case_further-dvc-repro
    • cml_dvc_case_master
    • cml_dvc_case_mfa
    • cml_dvc_case_test/gdrive
    • cml-runner-base-case-dependabot/pip/pillow-8.3.2
    • cml-runner-base-case-expeiment
    • cml-runner-base-case-main
    • cml_tensorboard_case_experiment
    • cml_tensorboard_case_master
    • example_cml_gitlab_experiment
    • example_cml_gitlab_master
    • example_cml_master
  9. casperdcl commented on Jan 12, 2022

    @casperdcl
    ContributorAuthor

    @iesahin

    1. rename master to main using the GH interface so people get redirected appropriately
    2. we need to keep all branches as they are (i.e. keep the associated PRs open as examples of what PRs look like)
    3. ideally only auto-update one (i.e. the latest) main commit from one unified codebase

    I'm open to other suggestions for (3). Basically requirement (2) is quite different from the DVC example repos and I don't see a neat way around it.

  10. iesahin commented on Jan 13, 2022

    @iesahin
    Contributor

    Let me investigate the repositories a bit. AFA I understand you want generate.sh to clone one (private?) repository generate other repositories from that by applying the changes.

    I want to use an approach as simple as possible, you'll keep project files in a repository (iterative/example_cml or some base repository) and have a directory structure similar to this:

       example-cml-generator/
         example-cml/
           main/
           experiment/
           experiment-1/
    ....
        cml_dvc_case/
           main/
           experiment/
           ....
    

    From these, it will apply cml_dvc_case/main to the base repository and get main branch, then apply experiment to this main branch and get experiment branch, etc.

    Please let me know if there are more complex relationships between the repositories.

  11. casperdcl commented on Jan 17, 2022

    @casperdcl
    ContributorAuthor

    I was thinking:

    • leave example_cml alone as-is
    • create a repo example-cml-generator which has multiple branches, all of which are ultimately rebased on example_cml
      • these branches get force-pushed to different repos (i.e. git push [email protected]:iterative/cml_dvc_case.git cml_dvc_case/experiment:experiment)
  12. added
    A: example-cml
    enhancement
    priority-p1
    on May 11, 2022
  13. 0x2b3bfa0 commented on May 17, 2022

    @0x2b3bfa0
    Member
  14. removed their assignment
    on Jun 21, 2022
  15. self-assigned this
    on Oct 26, 2022
  16. casperdcl commented on Oct 27, 2022

    @casperdcl
    ContributorAuthor

    @0x2b3bfa0 does this need to be reopened? What's the status?

  17. 0x2b3bfa0 commented on Oct 28, 2022

    @0x2b3bfa0
    Member

    @casperdcl, it probably doesnt (?) 🤔🐶

  18. 0x2b3bfa0 commented on Oct 28, 2022

    @0x2b3bfa0
    Member

    What's the status?

    The new examples are less broken than the old ones, although that doesn't necessarily1 imply that they work.

    Footnotes

    1. Weasel words, read: “they're also broken, but in minor ways by comparison” ↩

  19. casperdcl commented on Oct 28, 2022

    @casperdcl
    ContributorAuthor
  20. 0x2b3bfa0 commented on Oct 29, 2022

    @0x2b3bfa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A: example-cmlenhancementpriority-p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions