Skip to content

Commit

Permalink
Merge #50738
Browse files Browse the repository at this point in the history
50738: roachtest: fix django nightly test r=rafiss a=rafiss

The test needs to be run against a fork of Django that has testing fixes
in order to work with versions <=19.2. Also, some of the tests that were
enabled are not actually expected to pass yet. Finally, version 3.0.1 of
the adapter is needed in order to correctly do table introspection for
v20.1.

Release note: None

Co-authored-by: Rafi Shamim <[email protected]>
  • Loading branch information
craig[bot] and rafiss committed Jul 6, 2020
2 parents 0b6e118 + 56aeab0 commit fb6e129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 4 additions & 5 deletions pkg/cmd/roachtest/django.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var djangoReleaseTagRegex = regexp.MustCompile(`^(?P<major>\d+)\.(?P<minor>\d+)\
var djangoCockroachDBReleaseTagRegex = regexp.MustCompile(`^(?P<major>\d+)\.(?P<minor>\d+)$`)

var djangoSupportedTag = "3.0.6"
var djangoCockroachDBSupportedTag = "3.0"
var djangoCockroachDBSupportedTag = "3.0.1"

func registerDjango(r *testRegistry) {
runDjango := func(
Expand Down Expand Up @@ -112,9 +112,9 @@ func registerDjango(r *testRegistry) {
ctx,
t.l,
c,
"https://github.com/django/django/",
"https://github.com/timgraham/django/",
"/mnt/data1/django",
djangoSupportedTag,
"cockroach-3.0.x",
node,
); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -202,8 +202,7 @@ func registerDjango(r *testRegistry) {
results := newORMTestsResults()
results.parsePythonUnitTestOutput(fullTestResults, expectedFailureList, ignoredlist)
results.summarizeAll(
t, "django" /* ormName */, blocklistName,
expectedFailureList, version, djangoLatestTag,
t, "django" /* ormName */, blocklistName, expectedFailureList, version, djangoSupportedTag,
)
}

Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/roachtest/django_blocklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ package main
// in alphabetical order. As more progress is made with adding compatibility,
// more test apps should be added here to prevent against regression.
var enabledDjangoTests = []string{
"app_loading",
"apps",
"admin_changelist",
"admin_custom_urls",
"admin_docs",
Expand All @@ -30,8 +28,6 @@ var enabledDjangoTests = []string{
"annotations",
"auth_tests",
"backends",
"base",
"bash_completion",
"basic",
"bulk_create",
"cache",
Expand Down

0 comments on commit fb6e129

Please sign in to comment.