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

fix [githubpipenv] service tests #10658

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

jNullj
Copy link
Collaborator

@jNullj jNullj commented Nov 7, 2024

replaced tested package that changed on remote repo to avoid failure.

as discovered in pr #10656 at this ci test

@jNullj jNullj added keep-service-tests-green Related to fixing failing tests of the services javascript [dependabot only] Pull requests that update Javascript packages labels Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

Messages
📖 ✨ Thanks for your contribution to Shields, @jNullj!

Generated by 🚫 dangerJS against 53f4a57

@jNullj jNullj force-pushed the fix/service-test-green/github-pipenv branch from 45af635 to c27637c Compare November 7, 2024 22:07
replaced tested package which is missing with another example
@jNullj jNullj force-pushed the fix/service-test-green/github-pipenv branch from c27637c to 9a05c6e Compare November 7, 2024 22:12
@@ -83,9 +82,9 @@ t.create('Locked version of unknown dependency')

t.create('Locked version of VCS dependency')
.get(
'/locked/dependency-version/thorn-oss/perception/dev/videoalignment.json',
'/locked/dependency-version/metabolize/rq-dashboard-on-heroku/dev/black.json',
Copy link
Member

Choose a reason for hiding this comment

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

This isn't a VCS dependency it is a pypi dependency, so doing this just makes this replicate another test. We need to find an example of a project using a VCS dependency. Let me see if I can find one.

Copy link
Member

Choose a reason for hiding this comment

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

So here's a few examples of what we are looking for:

https://github.com/tomoki171923/aws-service-package/blob/53ea2e401b2183f442daef16f1d5b2f4a662e7b5/Pipfile.lock#L58-L62

https://github.com/formularium/formularium-backend/blob/a516a315a3c0a9a1f18b5576f11f2a56eab0bb50/Pipfile.lock#L367-L370

https://github.com/crowdgames/mdp-level-assembly/blob/3baf41f4cd313b19547f42359115347f62f71da3/Pipfile.lock#L19-L22

I have no idea how much we can expect any of those examples to remain stable. If this is something that keeps breaking, we could consider converting this test case to a mock or unit test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I ended up picking pipenv's locked vcs dependency pypiserver, i assume its a big project and is stable.
also very related to our tests here ;)

The version ref is a commit hash so i added a text-validation for commit hash, i bet it might be useful in the future.

Copy link
Member

Choose a reason for hiding this comment

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

reasonable choices all round 👍

@jNullj jNullj requested a review from chris48s November 10, 2024 19:09
@chris48s chris48s added this pull request to the merge queue Nov 11, 2024
Merged via the queue into badges:master with commit 4d203e1 Nov 11, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript [dependabot only] Pull requests that update Javascript packages keep-service-tests-green Related to fixing failing tests of the services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants