Skip to content

Conversation

@eshwarprasadS
Copy link
Contributor

@eshwarprasadS eshwarprasadS commented Apr 16, 2025

Since there is a new 0.0.2 release tag from submodlib-py, remove requirement versioning pin and remove linux-only requirement (as 0.0.2 supports MacOS builds)

Signed-off-by: eshwarprasadS <eshwarprasad.s01@gmail.com>
@mergify mergify bot added dependencies Pull requests that update a dependency file ci-failure labels Apr 16, 2025
@bbrowning
Copy link
Contributor

I'm wondering if at this point we remove the version constrain entirely? Or something like<= 1.0.0? That way we can pull in 0.0.1, 0.0.2, etc without needing to explicitly bump, since we work with both on Linux and Mac will automatically pick up 0.0.2.

@eshwarprasadS
Copy link
Contributor Author

I'm wondering if at this point we remove the version constrain entirely? Or something like<= 1.0.0? That way we can pull in 0.0.1, 0.0.2, etc without needing to explicitly bump, since we work with both on Linux and Mac will automatically pick up 0.0.2.

This sounds fine as well. Only reason I am wary of uncapped versioning for the dependency is due to its potential instability, specifically for this dependency. Not strictly opposed to this, just leaned towards the safer side, since we have had previous issues with this library and its stability. Open to removing the cap entirely for now, given this, WDYT?

@bbrowning
Copy link
Contributor

I think removing the cap entirely is reasonable for now, and we can address if some incompatible releases come out while we're still supporting this code.

requirements.txt Outdated
sentencepiece>=0.2.0
# Note: this dependency has to be built from source
submodlib-py==0.0.1; sys_platform == 'linux'
submodlib-py==0.0.2

Choose a reason for hiding this comment

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

Please do not pin to an exact version like this. If we had to deliver a fix in submodlib-py downstream we would not be able to ship the incompatible versions of the library. There are some guidelines for managing versions documented in https://github.com/instructlab/dev-docs/blob/main/docs/dependency-management.md.

I think in this case a version range like <0.1.0 or even <1.0.0 would make the most sense.

If you want to pin to a specific version for your CI jobs, use a constraints file separate from the requirements file.

@courtneypacheco
Copy link
Contributor

@eshwarprasadS I see the small E2E job is failing. In our core repo, we had to temporarily disable this job: instructlab/instructlab#3290

See linked issue for more information about why we temporarily disabled it: instructlab/instructlab#3289

So we can ignore the small E2E job failure here once @dhellmann's review comments are addressed.

Signed-off-by: eshwarprasadS <eshwarprasad.s01@gmail.com>
@mergify mergify bot added ci-failure and removed ci-failure labels Apr 18, 2025
@eshwarprasadS
Copy link
Contributor Author

@eshwarprasadS I see the small E2E job is failing. In our core repo, we had to temporarily disable this job: instructlab/instructlab#3290

See linked issue for more information about why we temporarily disabled it: instructlab/instructlab#3289

So we can ignore the small E2E job failure here once @dhellmann's review comments are addressed.

would we want to get another PR in for the e2e job failure, or can we ignore and merge for now, if the comments here are resolved?

@courtneypacheco
Copy link
Contributor

I suggest we merge this PR (with the small E2E failure) if it looks good to everyone, and comment out the small E2E job in another PR. This way, we don’t block this PR’s progress.

@bbrowning can you review this PR once more?

@mergify mergify bot added the one-approval label Apr 18, 2025
@eshwarprasadS
Copy link
Contributor Author

Wonderful, thanks everyone, for all the help in getting this in. Will put up another PR for disabling the small E2E job (for the time being).

@eshwarprasadS eshwarprasadS changed the title Bump submodlib-py to 0.0.2 and remove linux only install constraint Unpin submodlib-py and remove linux only install constraint Apr 18, 2025
@eshwarprasadS eshwarprasadS merged commit d22101c into instructlab:main Apr 18, 2025
27 of 28 checks passed
@bbrowning
Copy link
Contributor

@Mergifyio backport release-v0.8

@mergify
Copy link
Contributor

mergify bot commented Apr 21, 2025

backport release-v0.8

✅ Backports have been created

Details

mergify bot added a commit that referenced this pull request Apr 21, 2025
Unpin submodlib-py and remove linux only install constraint (backport #603)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-failure dependencies Pull requests that update a dependency file one-approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants