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

Version update for development #648

Merged
merged 6 commits into from
May 18, 2023
Merged

Conversation

sarthakpati
Copy link
Collaborator

@sarthakpati sarthakpati commented May 16, 2023

Fixes #N.A.

Proposed Changes

  • added -dev to version
  • only publish nightly if dev was found in version

Checklist

  • I have read the CONTRIBUTING guide.
  • My PR is based from the current GaNDLF master .
  • Non-breaking change (does not break existing functionality): provide as many details as possible for any breaking change.
  • Function/class source code documentation added/updated.
  • Code has been blacked for style consistency.
  • If applicable, version information has been updated in GANDLF/version.py.
  • If adding a git submodule, add to list of exceptions for black styling in pyproject.toml file.
  • Usage documentation has been updated, if appropriate.
  • History has been updated, if appropriate.
  • Tests added or modified to cover the changes; if coverage is reduced, please give explanation.
  • If customized dependency installation is required (i.e., a separate pip install step is needed for PR to be functional), please ensure it is reflected in all the files that control the CI, namely: python-test.yml, and all docker files [1,2,3].

@sarthakpati sarthakpati marked this pull request as draft May 16, 2023 14:35
@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2023

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@sarthakpati
Copy link
Collaborator Author

sarthakpati commented May 16, 2023

Curious if it would make sense to add -dev to the pip nightly publish [ref] instead of having -dev in the version.py file itself. This would let us not have to maintain the -dev ID in the version.py file.

Thoughts?

@AlexanderGetka-cbica @Geeks-Sid @hasan7n @aristizabal95

@AlexanderGetka-cbica
Copy link
Collaborator

AlexanderGetka-cbica commented May 16, 2023 via email

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #648 (aea457a) into master (7335258) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #648      +/-   ##
==========================================
+ Coverage   94.32%   94.33%   +0.01%     
==========================================
  Files         114      114              
  Lines        7677     7677              
==========================================
+ Hits         7241     7242       +1     
+ Misses        436      435       -1     
Flag Coverage Δ
unittests 94.33% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
GANDLF/version.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sarthakpati
Copy link
Collaborator Author

The only consequence I see is that this means that the repo itself will not track whether or not the code is in dev or a release version.

I think this is going to be the major downside. Let's see what the others think.

@hasan7n
Copy link
Contributor

hasan7n commented May 16, 2023

Could this help? I saw it used by the numpy package

@sarthakpati
Copy link
Collaborator Author

Could this help? I saw it used by the numpy package

This makes a lot of sence. Let's make this as a longer-term discussion, perhaps in conjunction with whatever versioning mechanism we will use with medperf?

@sarthakpati sarthakpati marked this pull request as ready for review May 17, 2023 14:42
@Geeks-Sid
Copy link
Collaborator

I believe it is crucial to carefully consider this issue's downside. I'm pleased to see the "dev" tag, as it indicates that the feature is currently under development. However, I propose that we expand our tag system by incorporating additional tags such as "-rc" for release candidates. We could also benefit from introducing tags like "nightly" and "stable," but this would require adhering to release schedules. For instance, we could aim to release stable versions at the end of each month and nightly builds on the 15th. Before granting approval for this request, I would appreciate further discussion on these suggestions. Thoughts from everyone are welcome, maybe something that can be discussed on common calls.

@sarthakpati
Copy link
Collaborator Author

I believe it is crucial to carefully consider this issue's downside. I'm pleased to see the "dev" tag, as it indicates that the feature is currently under development. However, I propose that we expand our tag system by incorporating additional tags such as "-rc" for release candidates. We could also benefit from introducing tags like "nightly" and "stable," but this would require adhering to release schedules. For instance, we could aim to release stable versions at the end of each month and nightly builds on the 15th. Before granting approval for this request, I would appreciate further discussion on these suggestions. Thoughts from everyone are welcome, maybe something that can be discussed on common calls.

Yes, these are things we should discuss during the weekly call. I unfortunately won't be there today, but I can discuss this next week. For now, let's get this merged in?

@AlexanderGetka-cbica
Copy link
Collaborator

Approving so that the version on PyPI is stable and not being pushed by master. Let's revisit this next time we speak.

@sarthakpati sarthakpati merged commit 6711763 into master May 18, 2023
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2023
@sarthakpati sarthakpati deleted the version_update_for_development branch May 18, 2023 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants