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

Add sync command to sync out-of-sync local environment #29

Merged
merged 9 commits into from
Jun 17, 2022

Conversation

SarthakJariwala
Copy link
Owner

@SarthakJariwala SarthakJariwala commented Jun 16, 2022

Example use cases:

Sync to new specfile

$ ezconda sync --name mlproj --with specfile
sequenceDiagram
    actor Alice (Mac)
    participant Repository
    actor Bob (Windows)
    Note right of Alice (Mac): Create env, spec & lock file using EZconda
    Alice (Mac)->>Repository: Push env, spec & lock file
    Repository->>Bob (Windows): Pull changes
    Note right of Repository: Add new dependency to project
    Note right of Repository: Spec file changed
    Bob (Windows)->>Repository: Push changes made to spec file
    Repository->>Alice (Mac): Pull updated spec file
    Note right of Alice (Mac): Local environment <-Out of Sync-> New spec file
    Note right of Alice (Mac): Use `ezconda sync` to sync
Loading

Sync to new lockfile

$ ezconda sync --name mlproj --with lockfile
sequenceDiagram
    actor Alice (Mac)
    participant Repository
    actor Bob (Mac)
    Note right of Alice (Mac): Create env, spec & lock file using EZconda
    Alice (Mac)->>Repository: Push env, spec & lock file
    Repository->>Bob (Mac): Pull changes
    Note right of Repository: Add new dependency to project
    Note right of Repository: Spec file & Lock file updated to reflect the new addition
    Bob (Mac)->>Repository: Push changes
    Repository->>Alice (Mac): Pull updated lock file
    Note right of Alice (Mac): Local environment <-Out of Sync-> New lock file
    Note right of Alice (Mac): Use `ezconda sync` to sync
Loading

Closes #27

@SarthakJariwala SarthakJariwala added the enhancement New feature or request label Jun 16, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2022

Codecov Report

Merging #29 (66d8321) into main (24e583a) will increase coverage by 0.42%.
The diff coverage is 95.45%.

❗ Current head 66d8321 differs from pull request most recent head 15ebd7b. Consider uploading reports for the commit 15ebd7b to get more accurate results

@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   90.61%   91.03%   +0.42%     
==========================================
  Files          15       16       +1     
  Lines         458      502      +44     
==========================================
+ Hits          415      457      +42     
- Misses         43       45       +2     
Impacted Files Coverage Δ
ezconda/_utils.py 87.91% <ø> (ø)
ezconda/sync.py 95.23% <95.23%> (ø)
ezconda/main.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24e583a...15ebd7b. Read the comment docs.

@SarthakJariwala SarthakJariwala changed the title Add sync command to sync local environment with updated specfile Add sync command to sync out-of-sync local environment Jun 16, 2022
@SarthakJariwala SarthakJariwala merged commit 0df4681 into main Jun 17, 2022
@SarthakJariwala SarthakJariwala deleted the sync-env branch June 17, 2022 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sync command to sync local environment with updated specfile & lockfile
2 participants