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

build: add roachtests to be run on every PR #25297

Merged
merged 1 commit into from
May 14, 2018

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented May 3, 2018

Release note: None

@danhhz danhhz requested review from benesch and a team May 3, 2018 21:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@danhhz danhhz added the do-not-merge bors won't merge a PR with this label. label May 3, 2018
@danhhz danhhz force-pushed the roachtest_everypr branch from 21851f3 to 60ecdd8 Compare May 3, 2018 21:58
@danhhz
Copy link
Contributor Author

danhhz commented May 3, 2018

@danhhz danhhz changed the title [DNM] build: add roachtests to be run on every PR build: add roachtests to be run on every PR May 3, 2018
@petermattis
Copy link
Collaborator

Yay! I'll let @benesch comment on the scripting. Adding nc to the builder image is straightforward. Just need to add the right apt package to build/builder/Dockerfile, run build/builder.sh init (this will take a while), build/builder.sh push and then update the version= line in build/builder.sh. Ok, maybe it isn't straightforward, but it isn't hard.


Review status: 0 of 4 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@danhhz danhhz force-pushed the roachtest_everypr branch from 60ecdd8 to f6e63c0 Compare May 4, 2018 17:56
@danhhz
Copy link
Contributor Author

danhhz commented May 4, 2018

Updated the builder image and switched this proof of concept to kv/splits

@petermattis
Copy link
Collaborator

:lgtm: though @benesch should still give this a look as I'm not familiar with how all the teamcity scripts fit together.


Review status: 0 of 4 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

Copy link
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

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

LGTM modulo removing the modifications to teamcity-test and teamcity-assert-clean!

@danhhz danhhz force-pushed the roachtest_everypr branch from f6e63c0 to 6ad8fe4 Compare May 14, 2018 16:52
@danhhz
Copy link
Contributor Author

danhhz commented May 14, 2018

bors r=benesch,petermattis

@craig
Copy link
Contributor

craig bot commented May 14, 2018

👎 Rejected by label

@danhhz danhhz removed the do-not-merge bors won't merge a PR with this label. label May 14, 2018
@danhhz
Copy link
Contributor Author

danhhz commented May 14, 2018

bors r=benesch,petermattis

craig bot pushed a commit that referenced this pull request May 14, 2018
25297: build: add roachtests to be run on every PR r=benesch,petermattis a=danhhz

Release note: None

25434: opt: Change how Any operator is represented and flattened r=andy-kimball a=andy-kimball

The Any operator currently takes a single input rowset, and expects
it to return a single boolean column. The hoister flattens the Any
operator by testing and projecting that boolean column. The problem
is that this representation cannot easily be decorrelated. Example:

   z = ANY(SELECT x FROM xy)

This is currently represented as:

  (Any (Project xy [ z=x ]))

The z=x projection field cannot easily be hoisted over a left join.
This commit uses an alternate representation:

  (Any xy z EqOp)

The new representation keeps the input, scalar, and comparison op
components separate, so they can be combined in ways that it easier
to decorrelate.

25456: storage: fix deadlock in consistency queue r=bdarnell,a-robinson a=tschottdorf

When `CheckConsistency` returns an error, the queue checks whether the
store is draining to decide whether the error is worth logging.

Unfortunately this check was incorrect and would block until the store
actually started draining.

A toy example of this problem is below (this will deadlock). The dual
return form of chan receive isn't non-blocking -- the second parameter
indicates whether the received value corresponds to a closing of the
channel.

Switch to a `select` instead.

```go
package main

import (
	"fmt"
)

func main() {
	ch := make(chan struct{})
	_, ok := <-ch
	fmt.Println(ok)
}
```

Touches #21824.

Release note (bug fix): Prevent the consistency checker from
deadlocking. This would previously manifest itself as a steady number of
replicas queued for consistency checking on one or more nodes and would
resolve by restarting the affected nodes.

Co-authored-by: Daniel Harrison <[email protected]>
Co-authored-by: Andrew Kimball <[email protected]>
Co-authored-by: Tobias Schottdorf <[email protected]>
@craig
Copy link
Contributor

craig bot commented May 14, 2018

Build succeeded

@craig craig bot merged commit 6ad8fe4 into cockroachdb:master May 14, 2018
@danhhz danhhz deleted the roachtest_everypr branch May 14, 2018 20:48
@danhhz
Copy link
Contributor Author

danhhz commented May 14, 2018

Unless someone objects, I'm going to wait until I'm back in the office on Wednesday to actually hook this up to Teamcity.

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