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

roachtest: move roachtest stress CI job instructions to README #69239

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Aug 23, 2021

Release justification: non-production code changes
Release note: None

@erikgrinaker erikgrinaker requested a review from a team August 23, 2021 15:01
@erikgrinaker erikgrinaker self-assigned this Aug 23, 2021
@erikgrinaker erikgrinaker requested review from otan and removed request for a team August 23, 2021 15:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Though until the thing actually works should we remove it? I also think it might be better in general to have these docs in a place that's easier to edit and link to that, like the readme for roachtest readme. Your call

@erikgrinaker erikgrinaker requested a review from a team as a code owner August 23, 2021 15:27
@erikgrinaker
Copy link
Contributor Author

Though until the thing actually works should we remove it?

There's no other project we could use in the meanwhile?

I also think it might be better in general to have these docs in a place that's easier to edit and link to that, like the readme for roachtest readme. Your call

It's a bit wordier than I'd like (unfortunately there doesn't appear to be a way to link directly to the run form, nor to prepopulate the inputs), but I find these instructions much more useful when they just tell me what to do rather than having to go read something. Not a strongly held opinion though, and I've added a section on this to the README in any case since it seems like something we'd want to mention there as well.

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

I'm partial to the inline instructions myself.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @otan)

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Interesting. My detailed pro-link arguments are:

  • it means that there is only one source of documentation (so nothing will go stale)
  • the email notifications get smaller (I primarily interact with roachtest issues through email, and don't need to see the detailed instructions dozens of times a week but the summary folding doesn't work in email-constrained html)
  • going through a PR to make even small tweaks + being constrained in how much I write + dealing with the markdown is painful
  • starting a roachtest job will take at least five minutes and isn't too frequent an operation, so adding an extra click to it seems totally justified

I can live with the status quo though.

It's a bit wordier than I'd like (unfortunately there doesn't appear to be a way to link directly to the run form, nor to prepopulate the inputs), but I find these instructions much more useful when they just tell me what to do rather than having to go read something. Not a strongly held opinion though, and I've added a section on this to the README in any case since it seems like something we'd want to mention there as well.

Another thing I've noticed is that it's really annoying to pick the SHA from the TeamCity "Changes" dropdown, unless the SHA is very very recent. I wonder if using the REST API would be a lot easier: https://www.jetbrains.com/help/teamcity/rest/start-and-cancel-builds.html
Would be nice if we didn't have to POST to that endpoint (so you could just do it in your browser, where you're already logged in). With POST there's likely a need to get a token, etc, so there's an upfront setup step. Might still be preferrable, though. The instructions would be: get an API token using these steps. Then run this script and it will ask you for stuff (like roachstress.sh) and then give you the build ID.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @otan)

@erikgrinaker
Copy link
Contributor Author

My detailed pro-link arguments are:

My reasoning here is that we should optimize for ease of use: when some developer is tasked with investigating a roachtest failure, we want to make that process as hassle-free as possible, which should include making all relevant information easily available and discoverable. I think it's worth sacrificing maintainability and email brevity for that, but if enough users complain I think a link would be fine too.

I wonder if using the REST API would be a lot easier: https://www.jetbrains.com/help/teamcity/rest/start-and-cancel-builds.html
Would be nice if we didn't have to POST to that endpoint (so you could just do it in your browser, where you're already logged in). With POST there's likely a need to get a token, etc, so there's an upfront setup step. Might still be preferrable, though. The instructions would be: get an API token using these steps. Then run this script and it will ask you for stuff (like roachstress.sh) and then give you the build ID.

Yeah, we considered this in the original PR, but given the added hassle of obtaining the auth token we decided to punt it. If we could just run a POST directly in the browser then that'd obviously be preferential.

That said, creating an access token is pretty trivial, so maybe we should just do that instead. I'll open an issue, need to focus on some other tasks first.

@erikgrinaker
Copy link
Contributor Author

#69289

@tbg
Copy link
Member

tbg commented Aug 24, 2021 via email

@erikgrinaker erikgrinaker force-pushed the roachtest-stress-formatting branch from 0af4559 to 85c146e Compare August 24, 2021 11:51
Release justification: non-production code changes
Release note: None
@erikgrinaker erikgrinaker force-pushed the roachtest-stress-formatting branch from 85c146e to a452dbc Compare August 24, 2021 11:52
@erikgrinaker erikgrinaker changed the title roachtest: fix formatting for reproduction instructions in GitHub issues roachtest: move roachtest stress CI job instructions to README Aug 24, 2021
@erikgrinaker
Copy link
Contributor Author

Sure, removed the instructions.

bors r=tbg,stevendanna

@craig
Copy link
Contributor

craig bot commented Aug 24, 2021

Build failed:

@erikgrinaker
Copy link
Contributor Author

bors r=tbg,stevendanna

@craig
Copy link
Contributor

craig bot commented Aug 24, 2021

Build succeeded:

@craig craig bot merged commit 7c36a9d into cockroachdb:master Aug 24, 2021
@erikgrinaker erikgrinaker deleted the roachtest-stress-formatting branch August 27, 2021 09:09
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.

4 participants