Skip to content

Commit

Permalink
Merge branch 'r-1.4' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 4, 2016
2 parents d89656a + d8ea32c commit 0549703
Show file tree
Hide file tree
Showing 17 changed files with 431 additions and 61 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
^revdep-dev$
^appveyor\.yml$
^man-roxygen$
^revdep$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
inst/doc
/revdep/.cache.rds
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Package: DBItest
Title: Testing 'DBI' Back Ends
Version: 1.3-11
Version: 1.4
Date: 2016-12-02
Authors@R: c( person(given = "Kirill", family = "Müller", role =
c("aut", "cre"), email = "[email protected]"),
person("RStudio", role = "cph") )
Description: A helper that tests 'DBI' back ends for conformity
to the interface, currently work in progress.
to the interface.
Depends:
R (>= 3.0.0)
Imports:
DBI (>= 0.4-9),
methods,
R6,
testthat (>= 1.0.2),
withr,
DBI (>= 0.4-9)
withr
Suggests:
devtools,
lintr,
knitr,
lintr,
rmarkdown
License: LGPL (>= 2)
LazyData: true
Expand Down
65 changes: 16 additions & 49 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,35 @@
## DBItest 1.3-11 (2016-12-02)
# DBItest 1.4 (2016-12-02)

- Not testing for presence of `max.connections` element in `dbGetInfo(Driver)` (rstats-db/DBI#56).
## DBI specification

- Use markdown in documentation.
- Description of parametrized queries and statements (#88).
- New hidden `DBIspec-wip` page for work-in-progress documentation.
- Get rid of "Format" and "Usage" sections, and aliases, in the specs.

## DBItest 1.3-10 (2016-10-06)
## Tests

- Not testing for presence of `max.connections` element in `dbGetInfo(Driver)` (rstats-db/DBI#56).
- Test multi-row binding for queries and statements (#96).
- New `ellipsis` check that verifies that all implemented DBI methods contain `...` in their formals. This excludes `show()` and all methods defined in this or other packages.
- Align description of binding with code.


## DBItest 1.3-9 (2016-10-01)

- Description of parametrized queries and statements (#88).
- Use markdown in documentation.
- Refactor tests for `dbBind()`, test is run by `BindTester` class, and behavior is specified by members and by instances of the new `BindTesterExtra` class.


## DBItest 1.3-8 (2016-09-17)

- Refactored `bind_` tests to use the new `parameter_pattern` tweak (#95).
- Rough draft of transaction tests (#36).


## DBItest 1.3-7 (2016-09-01)

- New `fetch_zero_rows` test, split from `fetch_premature_close`.
- The `skip` argument to the `test_()` functions is again evaluated with `perl = TRUE` to support negative lookaheads (#33).
- Isolate stress tests from main test suite (#92).


## DBItest 1.3-6 (2016-08-11)

- Use `dbSendStatement()` and `dbExecute()` where appropriate.
- The "compliance" test tests that the backend package exports exactly one subclass of each DBI virtual class.


## DBItest 1.3-5 (2016-08-07)

- New hidden `DBIspec-wip` page for work-in-progress documentation.


## DBItest 1.3-4 (2016-08-06)

- Add machinery to automatically copy `DBIspec.Rd` to a local checkout of the DBI package (rstats-db/DBI#129), with message indicating if documentation was updated. Two passes may be necessary to arrive to a stable state.
- Get rid of "Format" and "Usage" sections, and aliases, in the specs.


## DBItest 1.3-3 (2016-08-03)

- Document and enhance test for `dbDataType("DBIDriver", "ANY")` (#88).
- Minor corrections for "bind" tests.

## Internal

## DBItest 1.3-2 (2016-07-31)

- Isolate stress tests from main test suite (#92).
- Refactor test specification in smaller modules, isolated from actual test execution (#81). This breaks the documentation of the tests, which will be substituted by a DBI specification in prose.
- Align description of binding with code.
- Refactor tests for `dbBind()`, test is run by `BindTester` class, and behavior is specified by members and by instances of the new `BindTesterExtra` class.
- The `skip` argument to the `test_()` functions is again evaluated with `perl = TRUE` to support negative lookaheads (#33).
- Use `dbSendStatement()` and `dbExecute()` where appropriate.
- Avoid empty subsections in Rd documentation to satisfy `R CMD check` (#81).


## DBItest 1.3-1 (2016-07-31)

- Refactor test specification in smaller modules, isolated from actual test execution (#81). This breaks the documentation of the tests, which will substituted by a DBI specification in prose.
- Minor corrections for "bind" tests.


# DBItest 1.3 (2016-07-07)


Expand Down
5 changes: 3 additions & 2 deletions R/spec-meta-bind-.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ new_extra_imp <- function(extra) {
else if (length(extra) == 1)
new_extra_imp_one(extra)
else {
BindTesterExtraMulti$new(lapply(extra, new_extra_imp_one))
stop("need BindTesterExtraMulti")
# BindTesterExtraMulti$new(lapply(extra, new_extra_imp_one))
}
}

Expand Down Expand Up @@ -176,7 +177,7 @@ BindTester <- R6::R6Class(
initialize = function(con) {
self$con <- con
},
run = run_bind_tester,
run = run_bind_tester$fun,

con = NULL,
placeholder = NULL,
Expand Down
4 changes: 3 additions & 1 deletion R/spec-meta-bind.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
run_bind_tester <- list()

#' @template dbispec-sub
#' @format NULL
#' @section Parametrized queries and statements:
Expand Down Expand Up @@ -27,7 +29,7 @@
#'
#' \pkg{DBI} clients execute parametrized statements as follows:
#'
run_bind_tester <- function() {
run_bind_tester$fun <- function() {
if (extra_obj$requires_names() && is.null(names(placeholder))) {
# wrong_name test only valid for named placeholders
return()
Expand Down
11 changes: 7 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
## Test environments
* ubuntu 16.04, R 3.3.1
* ubuntu 12.04 (on travis-ci), R 3.3.1
* local ubuntu 16.10, R 3.3.2
* ubuntu 12.04 (on travis-ci), R release, devel, and oldrel
* win-builder (devel and release)

## R CMD check results

There were no ERRORs, WARNINGs or NOTEs.
Changes to the package's description as requested by Uwe Ligges. I hope a same-version update is okay here.

## Reverse dependencies

* I checked the single reverse dependency, `bigrquery`, locally.
* I checked the two reverse dependencies `bigrquery` and `RSQLite`.
There were no ERRORs, WARNINGs or NOTEs.

* RSQLite 1.1 on OS X seems to depend on this release, could you please trigger
a rebuild of RSQLite 1.1 once DBItest 1.4 has been built for OS X?
56 changes: 56 additions & 0 deletions revdep/README-r-1.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Setup

## Platform

|setting |value |
|:--------|:----------------------------|
|version |R version 3.3.2 (2016-10-31) |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|tz |Universal |
|date |2016-12-02 |

## Packages

|package |* |version |date |source |
|:---------|:--|:-----------|:----------|:----------------------------------|
|DBI | |0.5-12 |2016-12-02 |Github (rstats-db/DBI@562d091) |
|DBItest | |1.3-11 |2016-12-02 |Github (rstats-db/DBItest@d89656a) |
|devtools |* |1.12.0.9000 |2016-10-06 |local |
|knitr | |1.15.1 |2016-11-22 |cran (@1.15.1) |
|lintr | |1.0.0 |2016-04-16 |cran (@1.0.0) |
|R6 | |2.2.0 |2016-10-05 |cran (@2.2.0) |
|rmarkdown | |1.2 |2016-11-21 |cran (@1.2) |
|testthat | |1.0.2.9000 |2016-08-25 |Github (hadley/testthat@46d15da) |
|withr | |1.0.2 |2016-06-20 |CRAN (R 3.3.1) |

# Check results

2 packages

|package |version | errors| warnings| notes|
|:---------|:-------|------:|--------:|-----:|
|bigrquery |0.3.0 | 0| 0| 0|
|RSQLite |1.1 | 0| 0| 1|

## bigrquery (0.3.0)
Maintainer: Hadley Wickham <[email protected]>
Bug reports: https://github.com/rstats-db/bigrquery/issues

0 errors | 0 warnings | 0 notes

## RSQLite (1.1)
Maintainer: Kirill Müller <[email protected]>
Bug reports: https://github.com/rstats-db/RSQLite/issues

0 errors | 0 warnings | 1 note

```
checking installed package size ... NOTE
installed size is 7.8Mb
sub-directories of 1Mb or more:
libs 7.2Mb
```

72 changes: 72 additions & 0 deletions revdep/README-v1.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Setup

## Platform

|setting |value |
|:--------|:----------------------------|
|version |R version 3.3.2 (2016-10-31) |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|tz |Universal |
|date |2016-12-02 |

## Packages

|package |* |version |date |source |
|:---------|:--|:-----------|:----------|:----------------------------------|
|DBI | |0.5-12 |2016-12-02 |Github (rstats-db/DBI@562d091) |
|DBItest | |1.3-11 |2016-12-02 |Github (rstats-db/DBItest@d89656a) |
|devtools |* |1.12.0.9000 |2016-10-06 |local |
|knitr | |1.15.1 |2016-11-22 |cran (@1.15.1) |
|lintr | |1.0.0 |2016-04-16 |cran (@1.0.0) |
|rmarkdown | |1.2 |2016-11-21 |cran (@1.2) |
|testthat | |1.0.2.9000 |2016-08-25 |Github (hadley/testthat@46d15da) |
|withr | |1.0.2 |2016-06-20 |CRAN (R 3.3.1) |

# Check results

2 packages

|package |version | errors| warnings| notes|
|:---------|:-------|------:|--------:|-----:|
|bigrquery |0.3.0 | 0| 0| 0|
|RSQLite |1.1 | 1| 0| 1|

## bigrquery (0.3.0)
Maintainer: Hadley Wickham <[email protected]>
Bug reports: https://github.com/rstats-db/bigrquery/issues

0 errors | 0 warnings | 0 notes

## RSQLite (1.1)
Maintainer: Kirill Müller <[email protected]>
Bug reports: https://github.com/rstats-db/RSQLite/issues

1 error | 0 warnings | 1 note

```
checking tests ... ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
1/1 mismatches
[1] 1 - 0 == 1
testthat results ================================================================
OK: 1214 SKIPPED: 10 FAILED: 2
1. Failure: DBItest[RSQLite]: Driver: stress_load_unload (@test-driver.R#139)
2. Failure: DBItest[RSQLite]: Connection: stress_load_connect_unload (@test-connection.R#152)
Error: testthat unit tests failed
In addition: Warning message:
Unknown tweaks: placeholder_pattern
Execution halted
checking installed package size ... NOTE
installed size is 7.8Mb
sub-directories of 1Mb or more:
libs 7.2Mb
```

56 changes: 56 additions & 0 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Setup

## Platform

|setting |value |
|:--------|:----------------------------|
|version |R version 3.3.2 (2016-10-31) |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|tz |Universal |
|date |2016-12-02 |

## Packages

|package |* |version |date |source |
|:---------|:--|:-----------|:----------|:----------------------------------|
|DBI | |0.5-12 |2016-12-02 |Github (rstats-db/DBI@562d091) |
|DBItest | |1.3-11 |2016-12-02 |Github (rstats-db/DBItest@d89656a) |
|devtools |* |1.12.0.9000 |2016-10-06 |local |
|knitr | |1.15.1 |2016-11-22 |cran (@1.15.1) |
|lintr | |1.0.0 |2016-04-16 |cran (@1.0.0) |
|R6 | |2.2.0 |2016-10-05 |cran (@2.2.0) |
|rmarkdown | |1.2 |2016-11-21 |cran (@1.2) |
|testthat | |1.0.2.9000 |2016-08-25 |Github (hadley/testthat@46d15da) |
|withr | |1.0.2 |2016-06-20 |CRAN (R 3.3.1) |

# Check results

2 packages

|package |version | errors| warnings| notes|
|:---------|:-------|------:|--------:|-----:|
|bigrquery |0.3.0 | 0| 0| 0|
|RSQLite |1.1 | 0| 0| 1|

## bigrquery (0.3.0)
Maintainer: Hadley Wickham <[email protected]>
Bug reports: https://github.com/rstats-db/bigrquery/issues

0 errors | 0 warnings | 0 notes

## RSQLite (1.1)
Maintainer: Kirill Müller <[email protected]>
Bug reports: https://github.com/rstats-db/RSQLite/issues

0 errors | 0 warnings | 1 note

```
checking installed package size ... NOTE
installed size is 7.8Mb
sub-directories of 1Mb or more:
libs 7.2Mb
```

5 changes: 5 additions & 0 deletions revdep/check.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library("devtools")

revdep_check()
revdep_check_save_summary()
revdep_check_print_problems()
Binary file added revdep/checks.rds
Binary file not shown.
Loading

0 comments on commit 0549703

Please sign in to comment.