Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
e53ee5ee
Commit
e53ee5ee
authored
9 years ago
by
Cam Saül
Browse files
Options
Downloads
Patches
Plain Diff
Reduce intermittent CI failure rate
parent
181cfdf3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/driver/mongo/util.clj
+1
-1
1 addition, 1 deletion
src/metabase/driver/mongo/util.clj
test/metabase/test/data/bigquery.clj
+4
-7
4 additions, 7 deletions
test/metabase/test/data/bigquery.clj
with
5 additions
and
8 deletions
src/metabase/driver/mongo/util.clj
+
1
−
1
View file @
e53ee5ee
...
...
@@ -14,7 +14,7 @@
Don't set the timeout too low -- I've have Circle fail when the timeout was 1000ms
on *one* occasion."
15
00
)
30
00
)
(
def
^
:dynamic
^
com.mongodb.DB
*mongo-connection*
"Connection to a Mongo database.
...
...
This diff is collapsed.
Click to expand it.
test/metabase/test/data/bigquery.clj
+
4
−
7
View file @
e53ee5ee
...
...
@@ -115,9 +115,9 @@
(
.set
data
(
name
k
)
v
))
(
doto
(
TableDataInsertAllRequest$Rows.
)
(
.setJson
data
))))))))
;; Wait up to
15
seconds for all the rows to be loaded and become available by BigQuery
;; Wait up to
30
seconds for all the rows to be loaded and become available by BigQuery
(
let
[
expected-row-count
(
count
row-maps
)]
(
loop
[
seconds-to-wait-for-load
15
]
(
loop
[
seconds-to-wait-for-load
30
]
(
let
[
actual-row-count
(
table-row-count
dataset-id
table-id
)]
(
cond
(
=
expected-row-count
actual-row-count
)
:ok
...
...
@@ -182,13 +182,10 @@
(
try
(
destroy-dataset!
database-name
)
(
catch
Throwable
_
))
(
create-dataset!
database-name
)
(
u/p
doseq
[
tabledef
table-definitions
]
(
doseq
[
tabledef
table-definitions
]
(
load-tabledef!
database-name
tabledef
)))
(
println
(
u/format-color
'green
"[OK]"
)))
(
defn-
destroy-db!
[{
:keys
[
database-name
]}]
#
_
(
destroy-dataset!
(
normalize-name
database-name
)))
;;; # ------------------------------------------------------------ IDatasetLoader ------------------------------------------------------------
...
...
@@ -198,4 +195,4 @@
{
:engine
(
constantly
:bigquery
)
:database->connection-details
(
u/drop-first-arg
database->connection-details
)
:create-db!
(
u/drop-first-arg
create-db!
)
:destroy-db!
(
u/drop-first-arg
destroy-db!
)}))
:destroy-db!
(
constantly
nil
)}))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment