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

Add docs for interactive example #4641

Merged
merged 7 commits into from
Sep 7, 2021
Merged

Conversation

metonymic-smokey
Copy link
Contributor

@metonymic-smokey metonymic-smokey commented Sep 6, 2021

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.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  1. Changed "uncomment" in the message to "comment".
  2. Changed link in Vertical Compaction section in compact.md

Verification

The steps to run the example work as expected and run the test.

@metonymic-smokey
Copy link
Contributor Author

@yeya24 pls review this PR when you can!
Thanks!

yeya24
yeya24 previously approved these changes Sep 7, 2021
Copy link
Contributor

@yeya24 yeya24 left a 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.

@yeya24
Copy link
Contributor

yeya24 commented Sep 7, 2021

@metonymic-smokey Can you run make docs command? I guess that should fix the CI.
CI failure not related to this pr.

@rahulii
Copy link

rahulii commented Sep 7, 2021

While running the interactive test, one of the potential errors is Unable to find image 'thanos:latest' locally which is solved by running make docker
@yeya24 do you think we should add it in documentation?
LGTM otherwise!

@akanshat
Copy link
Contributor

akanshat commented Sep 7, 2021

It looks good to me. LGTM!

Copy link
Member

@onprem onprem left a 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!

tutorials/interactive-example/README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,8 @@
# Interactive Example
Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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!

Copy link
Contributor Author

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?

Copy link
Member

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.

@onprem
Copy link
Member

onprem commented Sep 7, 2021

While running the interactive test, one of the potential errors is Unable to find image 'thanos:latest' locally which is solved by running make docker
@yeya24 do you think we should add it in documentation?
LGTM otherwise!

Yes, that'd be nice. We can also have a Makefile target for running the interactive example, with docker target as dependency.

@onprem onprem closed this Sep 7, 2021
@onprem onprem reopened this Sep 7, 2021
@onprem
Copy link
Member

onprem commented Sep 7, 2021

Sorry, closed the PR by mistake.

@rahulii
Copy link

rahulii commented Sep 7, 2021

While running the interactive test, one of the potential errors is Unable to find image 'thanos:latest' locally which is solved by running make docker
@yeya24 do you think we should add it in documentation?
LGTM otherwise!

Yes, that'd be nice. We can also have a Makefile target for running the interactive example, with docker target as dependency.

@onprem should i take this ?
cc @squat @GiedriusS

@GiedriusS
Copy link
Member

While running the interactive test, one of the potential errors is Unable to find image 'thanos:latest' locally which is solved by running make docker
@yeya24 do you think we should add it in documentation?
LGTM otherwise!

Yes, that'd be nice. We can also have a Makefile target for running the interactive example, with docker target as dependency.

@onprem should i take this ?
cc @squat @GiedriusS

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]>
Copy link
Member

@onprem onprem left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Thanks!

@onprem onprem enabled auto-merge (squash) September 7, 2021 12:09
@onprem onprem disabled auto-merge September 7, 2021 13:13
@onprem onprem merged commit 1205a22 into thanos-io:main Sep 7, 2021
Copy link
Member

@bwplotka bwplotka left a 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!")
Copy link
Member

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...

Copy link
Contributor Author

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.

someshkoli pushed a commit to someshkoli/thanos that referenced this pull request Nov 7, 2021
* 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]>
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.

Minor bugs in example
7 participants