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 ujson version #389

Merged
merged 1 commit into from
May 6, 2020
Merged

fix ujson version #389

merged 1 commit into from
May 6, 2020

Conversation

li-wu
Copy link
Contributor

@li-wu li-wu commented May 6, 2020

No description provided.

@jmeixensperger
Copy link
Contributor

You might also need to update the ujson package that's being downloaded in the Makefile: https://github.com/splunk/eventgen/blob/develop/Makefile#L45

@li-wu li-wu force-pushed the bugfix/ci-fail branch 4 times, most recently from 606f6dd to 2aa781b Compare May 6, 2020 06:26
@@ -42,7 +42,7 @@ test_helper:
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "cd $(shell pwd); pip3 install dist/splunk_eventgen*.tar.gz"

@echo 'Installing test requirements'
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip3 install --upgrade pip;pip3 install -r $(shell pwd)/requirements.txt;pip3 install git+https://github.com/esnme/ultrajson.git"
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip3 install --upgrade pip;pip3 install -r $(shell pwd)/requirements.txt"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Check related bug here: ultrajson/ultrajson#326. This issue has been fixed in version 2.0+. So we do not need to use git+https://github.com/esnme/ultrajson.git to install ujson.

pip2 install filelock twisted requests queuelib ujson psutil crochet msgpack-python unidecode attrdict service_identity && \
pip2 install git+https://github.com/esnme/ultrajson.git
pip2 install filelock twisted requests queuelib psutil crochet msgpack-python unidecode attrdict service_identity && \
pip2 install git+https://github.com/esnme/ultrajson.git@v1.35
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The conductor2 depends on ujson < 2.0, so we need to install it in this way.

@@ -10,12 +10,11 @@ pytest-mock>=1.10.4
boto3
requests>=2.18.4
requests[security]
ujson>=1.35
ujson==2.0.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

upgrade to the latest version 2.0.3.

@@ -9,4 +9,4 @@ exclude = '''
| build
| dist
)/
```
'''
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix typo and bug: #387

@jmeixensperger jmeixensperger merged commit 9c1e883 into develop May 6, 2020
@jmeixensperger jmeixensperger deleted the bugfix/ci-fail branch May 6, 2020 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants