Giter Club home page Giter Club logo

bisectr's People

Contributors

wch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

cderv

bisectr's Issues

Is this still working?

When I tried to implement this package, git bisect incorrectly identified the first bad commit as the initial git bisect bad commit. You can see this in action below. Commit 483654834d5176e88db76daef5b5d7de84837af4 gave bad(1), but git bisect identifies the next commit (the initial git bisect bad) as the first bad one.

asadowsk ((15ff55e...) *|BISECTING) megamation $ git bisect run /c/Program\ Files/R/R-4.3.2/bin/Rscript ./test.R
running 'C:/Program Files/R/R-4.3.2/bin/Rscript' './test.R'

===== Running test script ======
ℹ Loading megamation
Running test...
Returning code: good (0)

Bisecting: 1 revision left to test after this (roughly 1 step)
[add0a4077317d6a10b585b9be1f596aa5fef3d4f] Remove check_creds()
running 'C:/Program Files/R/R-4.3.2/bin/Rscript' './test.R'

===== Running test script ======
ℹ Loading megamation
Running test...
Returning code: good (0)

Bisecting: 0 revisions left to test after this (roughly 0 steps)
[483654834d5176e88db76daef5b5d7de84837af4] Add .multi param to req_url_query()
running 'C:/Program Files/R/R-4.3.2/bin/Rscript' './test.R'

===== Running test script ======
ℹ Loading megamation
Running test...
Returning code: bad (1)

b60c88aa03c13d20a1632bd68df96c6cc276a707 is the first bad commit
commit b60c88aa03c13d20a1632bd68df96c6cc276a707
Author: Adam Sadowski <[email protected]>
Date:   Thu Dec 7 11:21:25 2023 -0500

    Document new mm_authorize()

 NAMESPACE                       |  1 +
 R/authorize.R                   | 32 ++++++++++++++++++++++++++++++++
 R/utils-check.R                 | 32 ++++++++++++++++++++++++++++++++
 R/utils.R                       |  9 ++-------
 R/zzz.R                         | 28 ++++++++++++++++++++++++++++
 man/mm_authorize.Rd             | 33 +++++++++++++++++++++++++++++++++
 tests/testthat/test-authorize.R | 40 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 168 insertions(+), 7 deletions(-)
 create mode 100644 R/authorize.R
 create mode 100644 R/zzz.R
 create mode 100644 man/mm_authorize.Rd
 create mode 100644 tests/testthat/test-authorize.R
bisect found first bad commit

test.r

#!/c/Program\ Files/R/R-4.3.2/bin/Rscript

# To run this script:
# git bisect reset
# git bisect start
# git bisect good 7e061fc8d128e96cb33adae0f32443b943d1953c
# git bisect run mytestscript.r
cat("\n===== Running test script ======\n")
# library(bisectr)

# Load package in current directory
#Use devtools instead of bisectr as bisect_load_all() gives error
devtools::load_all()
# bisectr::bisect_load_all(".", on_error = "skip")

# Run the test, and if error, mark skip
fun <- function() {
  date <- as.Date("2023-09-20")
  date <- c(date, date + 3)

  expected <- list(
    DATE = structure("09-20-2023", class = "AsIs"),
    DATE = structure("09-23-2023", class = "AsIs")
  )
  if(identical(format_params(date = date), expected))
    return("good")
  else
    return("bad")
}

bisect_runtest(fun, on_error = "bad")

Error with bisect_load_all()

Seems to happen on any package I try it on, I don't see any immediate cause otherwise I would fix it

bisect_load_all()
# Loading package in directory .
# Loading covr
# Error in bisect_runtest(function() { :
#  (list) object cannot be coerced to type 'logical'
traceback()
#2: bisect_runtest(function() {
#       load_all(pkgdir, reset = TRUE)
#   }, on_error = on_error, msg = paste("Loading package in directory",
#       pkgdir)) at bisect.r#111
#1: bisect_load_all()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.