-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add docs for interactive example #4641
Conversation
Signed-off-by: metonymic-smokey <[email protected]>
Signed-off-by: metonymic-smokey <[email protected]>
Signed-off-by: metonymic-smokey <[email protected]>
@yeya24 pls review this PR when you can! |
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.
LGTM! Thanks for the contribution.
|
While running the interactive test, one of the potential errors is |
It looks good to me. LGTM! |
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.
I just have some small suggestions, everything else LGTM. Thanks for taking care of this!
@@ -0,0 +1,8 @@ | |||
# Interactive Example |
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.
I would prefer if we can have this documentation in the CONTRIBUTING.md
file as a section. That way it'll be easier to find by new contributors.
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.
This is just my opinion so I'd love to know WDYT @yeya24 @metonymic-smokey
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.
I think CONTRIBUTING.md
could have a link to this file?
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.
Yes, that sounds good. Just make sure to put the complete GitHub URL (like https://github.com/thanos-io/thanos/blob/main/examples/interactive/README.md
) otherwise it would get 404'd on website.
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.
@onprem done in the latest commit!
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.
@onprem This link is causing the docs check to fail since the link will become valid only when the PR is merged to main. Is there something I can do to fix it?
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.
Ah, no worries. I can go ahead and merge this as the link will start working after the merge.
Yes, that'd be nice. We can also have a Makefile target for running the interactive example, with |
Sorry, closed the PR by mistake. |
@onprem should i take this ? |
Yep, it would be great because currently, it is hard to find 👍 |
Signed-off-by: metonymic-smokey <[email protected]>
Signed-off-by: metonymic-smokey <[email protected]>
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.
LGTM 🚀
Thanks!
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.
Thanks 🤗
@@ -89,7 +89,7 @@ func createData() (perr error) { | |||
// TestReadOnlyThanosSetup runs read only Thanos setup that has data from `maxTimeFresh - 2w` to `maxTimeOld`, with extra monitoring and tracing for full playground experience. | |||
// Run with test args `-test.timeout 9999m`. | |||
func TestReadOnlyThanosSetup(t *testing.T) { | |||
t.Skip("This is interactive test - it will until you will kill it or curl 'finish' endpoint. Uncomment and run as normal test to use it!") | |||
t.Skip("This is interactive test - it will until you will kill it or curl 'finish' endpoint. Comment and run as normal test to use it!") |
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.
t.Skip("This is interactive test - it will until you will kill it or curl 'finish' endpoint. Comment and run as normal test to use it!")
... it will run until...
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.
@bwplotka sorry for the delay, I shall open a PR fixing this soon.
* fixed broken compaction link Signed-off-by: metonymic-smokey <[email protected]> * fixed message in example Signed-off-by: metonymic-smokey <[email protected]> * added README for interactive example Signed-off-by: metonymic-smokey <[email protected]> * refer to issue about MacOS support Signed-off-by: metonymic-smokey <[email protected]> * added reference in CONTRIBUTING.md Signed-off-by: metonymic-smokey <[email protected]>
This PR fixes #4639
This PR makes running the interactive example slightly more intuitive by adding the steps used to run it and making the message more intuitive.
It also fixes a small broken link in the
docs
.Changes
Vertical Compaction
section incompact.md
Verification
The steps to run the example work as expected and run the test.