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: change deps installation method in unit tests #258

Merged
merged 4 commits into from
Apr 17, 2024

Conversation

mkolasinski-splunk
Copy link
Contributor

@mkolasinski-splunk mkolasinski-splunk commented Apr 16, 2024

Currently in unit tests we install dependencies from requirements_dev.txt file, exported by poetry.

The problem is that this requirements_dev.txt file contains environment markers with supported versions of pythons - this format causes pip to exit silently ans setup step is successful - job is failing later on run-test step which is unexpected.

Changed installation method to poetry install

Tests:
https://github.com/splunk/splunk-add-on-for-google-workspace/pull/547
https://github.com/splunk/splunk-add-on-for-amazon-web-services/pull/1221

Currently in unit tests we install dependencies from requirements_dev.txt file, exported by poetry.

The problem is tat this requirements.txt file contains environment markers pointing to versions of pythons - this format causes pip to exit silently.

Changed installation method to poetry install
Copy link
Member

@artemrys artemrys left a comment

Choose a reason for hiding this comment

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

I like it!

@mkolasinski-splunk mkolasinski-splunk merged commit 0f691bb into develop Apr 17, 2024
6 checks passed
@mkolasinski-splunk mkolasinski-splunk deleted the fix/unit-tests-installation-method branch April 17, 2024 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2024
@srv-rr-github-token
Copy link

🎉 This PR is included in version 4.16.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants