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

[tests] Refactor tox.ini file #609

Merged
merged 2 commits into from
Sep 25, 2018
Merged

[tests] Refactor tox.ini file #609

merged 2 commits into from
Sep 25, 2018

Conversation

labbati
Copy link
Member

@labbati labbati commented Sep 19, 2018

  • We defined specific commands depending on the real command and not on
    the dependency graph
  • We removed django testenv special configurations that were no longer
    used after we added redis{210} in place of redis to the dependency list
  • We sorted alphabetically the various envs
  • We do not rely anymore on checksum of tox.ini to invalidate cache

@labbati labbati added this to the 0.15.0 milestone Sep 19, 2018
@labbati labbati force-pushed the labbati/refactor-tox-file branch 6 times, most recently from 5d1a820 to bedcf85 Compare September 20, 2018 09:45
- We defined specific commands depending on the real command and not on
the dependency graph
- We removed django testenv special configurations that were no longer
used after we added redis{210} in place of redis to the dependency list
- We sorted alphabetically the various envs
- We do not rely anymore on checksum of tox.ini to invalidate cache
Copy link
Member

@Kyle-Verhoog Kyle-Verhoog left a comment

Choose a reason for hiding this comment

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

Just one comment, should be good to go after that!

@@ -10,6 +10,15 @@ test_runner: &test_runner
image: datadog/docker-library:dd_trace_py_1_1_0
env:
TOX_SKIP_DIST: True
restore_cache_step: &restore_cache_step
Copy link
Member

Choose a reason for hiding this comment

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

We should probably document the usage and motivation behind Environment.CACHE_EXPIRE_HASH so that it doesn't look like magic or require much digging in the future 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Great idea. Will do right now! 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

@Kyle-Verhoog just pushed an update. Would you please take a look at it? Thanks

@labbati labbati merged commit 9201879 into master Sep 25, 2018
@labbati labbati deleted the labbati/refactor-tox-file branch September 25, 2018 07:32
@labbati labbati modified the milestones: 0.15.0, 0.14.1 Sep 25, 2018
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

2 participants