-
Notifications
You must be signed in to change notification settings - Fork 174
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
docs(README): Document how to test an in-development version of Baseplate in Snoodev #756
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,25 @@ actions on push. | |
Specific hooks can be [temporarily disabled](https://pre-commit.com/#temporarily-disabling-hooks). | ||
|
||
You can install hooks only for a specific step (i.e. [pre-push](https://pre-commit.com/#pre-commit-during-push)). | ||
|
||
# Testing in Snoodev | ||
KTAtkinson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can upgrade any service to use in development Baseplate code in Snoodev by | ||
editing the requirements file for the service you would like to use for testing. | ||
Update the the Baseplate requirement to pull from Github instead, like this: | ||
|
||
``` | ||
diff --git a/requirements.txt b/requirements.txt | ||
index aef8ad8..d32a078 100644 | ||
--- a/requirements.txt | ||
+++ b/requirements.txt | ||
-baseplate==2.5.7 | ||
+git+https://github.com/reddit/baseplate.py@<ref>#egg=baseplate | ||
``` | ||
|
||
In this case the ref can be either a commit hash or a branch name. After making | ||
this update you can check if the service works in Snoodev. | ||
|
||
> **Warning** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL markdown syntax formats this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to look it up :D |
||
> Never deploy this change to production. Production should always use a Baseplate | ||
> version that has been released and published to pypi. | ||
KTAtkinson marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Not against it here, and these instructions seem fine, but seems a little strange to me for this to be here but testing sidecars to be in the wiki
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that talks about how to release sidecars and then test them, not how to test them locally. Also currently this approach doesn't work with sidecars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π nit: Multiple top-level headings in the same document