Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [45s/93s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(GitStats)
  
  Attaching package: 'GitStats'
  
  The following object is masked from 'package:testthat':
  
      is_parallel
  
  > 
  > test_check("GitStats")
  i 3 organizations found.
  > Pulling organizations 🏛️ data...
  v Data pulled in 0 secs
  
  ............
  Saving _problems/test-01-get_repos-GitLab-703.R
  Saving _problems/test-01-get_repos-GitLab-1143.R
  Saving _problems/test-01-get_repos-GitLab-1144.R
  > Pulling repositories 🌐 data...
  ! Getting cached repositories data.
  i If you wish to pull the data from API once more, set `cache` parameter to `FALSE`.
  v Data pulled in 0 secs
  v Data pulled in 0 secs
  > Pulling repositories 🌳 structure...
  v Data pulled in 0 secs
  > Pulling files 📄 content...
  v Data pulled in 0 secs
  v Data pulled in 0 secs
  v Data pulled in 0 secs
  v Data pulled in 0 secs
  Saving _problems/test-get_urls_repos-GitLab-127.R
  Saving _problems/test-get_urls_repos-GitLab-128.R
  Saving _problems/test-get_urls_repos-GitLab-146.R
  Saving _problems/test-get_urls_repos-GitLab-147.R
  Saving _problems/test-get_urls_repos-GitLab-165.R
  Saving _problems/test-get_urls_repos-GitLab-166.R
  Saving _problems/test-get_urls_repos-GitLab-189.R
  Saving _problems/test-get_urls_repos-GitLab-190.R
  Saving _problems/test-get_urls_repos-GitStats-36.R
  > Pulling repositories 🌐 URLs...
  > Pulling repositories 🌐 URLs...
  Saving _problems/test-get_urls_repos-GitStats-111.R
  v Data pulled in 0 secs
  Saving _problems/test-get_urls_repos-GitStats-135.R
  > Pulling users 🙍 data...
  v Data pulled in 0 secs
  ! Getting cached commits data.
  i If you wish to pull the data from API once more, set `cache` parameter to `FALSE`.
  i Parallel processing disabled.
  i Parallel processing disabled.
  i Parallel processing disabled.
  v Parallel processing enabled with 4 workers.
  v Parallel processing enabled with 2 workers.
  v Parallel processing enabled with 2 workers.
  v Parallel processing enabled with 8 workers.
  i Parallel processing disabled.
  i Parallel processing disabled.
  v Parallel processing enabled with 2 workers.
  v Parallel processing enabled with 2 workers.
  v Parallel processing enabled with 2 workers.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "PostgreSQL".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  v Storage set to "SQLite".
  i Database is empty.
  [ FAIL 14 | WARN 0 | SKIP 157 | PASS 1382 ]
  
  ══ Skipped tests (157) ═════════════════════════════════════════════════════════
  • On CRAN (141): 'test-00-api-requests.R:2:3', 'test-00-api-requests.R:32:3',
    'test-00-api-requests.R:101:3', 'test-00-get_orgs-GitHub.R:1:1',
    'test-00-get_orgs-GitHub.R:11:1', 'test-00-get_orgs-GitHub.R:65:1',
    'test-00-get_orgs-GitHub.R:107:1', 'test-00-get_orgs-GitLab.R:1:1',
    'test-00-get_orgs-GitLab.R:9:1', 'test-00-get_orgs-GitLab.R:17:1',
    'test-00-get_orgs-GitLab.R:39:1', 'test-00-get_orgs-GitLab.R:90:1',
    'test-00-get_orgs-GitLab.R:123:1', 'test-00-get_orgs-GitLab.R:166:1',
    'test-00-get_orgs-GitLab.R:220:1', 'test-00-get_orgs-GitLab.R:357:1',
    'test-00-get_orgs-GitLab.R:446:1', 'test-00-get_orgs-GitLab.R:476:1',
    'test-00-get_orgs-GitStats.R:41:1', 'test-00-get_orgs-GitStats.R:62:1',
    'test-01-get_repos-GitHub.R:1:1', 'test-01-get_repos-GitHub.R:10:1',
    'test-01-get_repos-GitHub.R:19:1', 'test-01-get_repos-GitHub.R:28:1',
    'test-01-get_repos-GitHub.R:317:1', 'test-01-get_repos-GitHub.R:391:1',
    'test-01-get_repos-GitHub.R:411:1', 'test-01-get_repos-GitHub.R:429:1',
    'test-01-get_repos-GitHub.R:531:1', 'test-01-get_repos-GitHub.R:669:1',
    'test-01-get_repos-GitHub.R:783:1', 'test-01-get_repos-GitLab.R:1:1',
    'test-01-get_repos-GitLab.R:10:1', 'test-01-get_repos-GitLab.R:19:1',
    'test-01-get_repos-GitLab.R:27:1', 'test-01-get_repos-GitLab.R:216:1',
    'test-01-get_repos-GitLab.R:303:1', 'test-01-get_repos-GitLab.R:461:1',
    'test-01-get_repos-GitLab.R:477:1', 'test-01-get_repos-GitLab.R:501:1',
    'test-01-get_repos-GitLab.R:557:1', 'test-01-get_repos-GitLab.R:636:1',
    'test-01-get_repos-GitLab.R:657:1', 'test-01-get_repos-GitLab.R:777:1',
    'test-01-get_repos-GitLab.R:840:1', 'test-01-get_repos-GitLab.R:951:1',
    'test-01-get_repos-GitStats.R:144:1', 'test-01-get_repos-GitStats.R:175:1',
    'test-02-get_commits-GitHub.R:1:1', 'test-02-get_commits-GitHub.R:150:1',
    'test-02-get_commits-GitHub.R:199:1', 'test-02-get_commits-GitLab.R:142:1',
    'test-02-get_commits-GitLab.R:156:1', 'test-02-get_commits-GitLab.R:183:1',
    'test-02-get_commits-GitStats.R:59:1', 'test-02-get_commits-GitStats.R:72:1',
    'test-02-get_commits-GitStats.R:108:1',
    'test-02-get_commits-GitStats.R:122:1',
    'test-03-get_files_structure-GitHub.R:40:1',
    'test-03-get_files_structure-GitHub.R:95:1',
    'test-03-get_files_structure-GitHub.R:127:1',
    'test-03-get_files_structure-GitLab.R:33:1',
    'test-03-get_files_structure-GitLab.R:50:1',
    'test-03-get_files_structure-GitLab.R:97:1',
    'test-03-get_repos_trees-GitStats.R:36:1',
    'test-03-get_repos_trees-GitStats.R:48:1',
    'test-04-get_files_content-GitHub.R:1:1',
    'test-04-get_files_content-GitHub.R:196:1',
    'test-04-get_files_content-GitHub.R:216:1',
    'test-04-get_files_content-GitHub.R:243:1',
    'test-04-get_files_content-GitHub.R:267:1',
    'test-04-get_files_content-GitLab.R:1:1',
    'test-04-get_files_content-GitLab.R:122:1',
    'test-04-get_files_content-GitLab.R:150:1',
    'test-04-get_files_content-GitLab.R:244:1',
    'test-04-get_files_content-GitLab.R:266:1',
    'test-04-get_files_content-GitLab.R:284:1', 'test-05-get_files.R:75:1',
    'test-05-get_files.R:118:1', 'test-05-get_files.R:128:1',
    'test-06-get_issues-GitHub.R:1:1', 'test-06-get_issues-GitHub.R:131:1',
    'test-06-get_issues-GitHub.R:180:1', 'test-06-get_issues-GitLab.R:1:1',
    'test-06-get_issues-GitStats.R:57:1', 'test-06-get_issues-GitStats.R:69:1',
    'test-06-get_issues-GitStats.R:106:1', 'test-get_commits_stats.R:28:1',
    'test-get_issues_stats.R:27:1', 'test-get_pull_requests-01-GitHub.R:1:1',
    'test-get_pull_requests-01-GitHub.R:101:1',
    'test-get_pull_requests-01-GitHub.R:150:1',
    'test-get_pull_requests-02-GitLab.R:1:1',
    'test-get_pull_requests-02-GitLab.R:99:1',
    'test-get_pull_requests-02-GitLab.R:148:1',
    'test-get_pull_requests-03-GitStats.R:57:1',
    'test-get_pull_requests-03-GitStats.R:69:1',
    'test-get_pull_requests-03-GitStats.R:106:1',
    'test-get_pull_requests-04-stats.R:25:1', 'test-get_release-GitHub.R:1:1',
    'test-get_release-GitLab.R:1:1', 'test-get_release-GitLab.R:53:1',
    'test-get_release-GitLab.R:73:1', 'test-get_release-GitStats.R:32:1',
    'test-get_release-GitStats.R:43:1', 'test-get_release-GitStats.R:75:1',
    'test-get_urls_repos-GitHub.R:54:1', 'test-get_urls_repos-GitHub.R:75:1',
    'test-get_urls_repos-GitHub.R:104:1', 'test-get_urls_repos-GitStats.R:78:1',
    'test-get_urls_repos-GitStats.R:138:1',
    'test-get_urls_repos-GitStats.R:155:1', 'test-get_user-GitHub.R:1:1',
    'test-get_user-GitLab.R:1:1', 'test-get_users-GitStats.R:29:1',
    'test-get_users-GitStats.R:61:1', 'test-helpers.R:1:1',
    'test-helpers.R:10:1', 'test-helpers.R:47:1', 'test-helpers.R:54:1',
    'test-helpers.R:62:3', 'test-helpers.R:80:3', 'test-helpers.R:100:3',
    'test-helpers.R:117:3', 'test-helpers.R:143:3', 'test-helpers.R:173:3',
    'test-helpers.R:183:3', 'test-helpers.R:193:3', 'test-helpers.R:207:3',
    'test-set_host.R:173:3', 'test-set_host.R:193:3', 'test-set_host.R:213:3',
    'test-set_host.R:229:3', 'test-z-GitStats.R:7:1', 'test-z-GitStats.R:11:1',
    'test-z-GitStats.R:17:3', 'test-z-GitStats.R:34:1', 'test-z-GitStats.R:40:1',
    'test-z-GitStats.R:89:1', 'test-z-GitStats.R:119:3',
    'test-z-GitStats.R:134:3'
  • empty test (10): 'test-00-api-requests.R:59:1',
    'test-06-get_issues-GitHub.R:49:1', 'test-set_host.R:3:1',
    'test-set_host.R:26:1', 'test-set_host.R:42:1', 'test-set_host.R:58:1',
    'test-set_host.R:74:1', 'test-set_host.R:96:1', 'test-set_host.R:113:1',
    'test-set_host.R:147:1'
  • integration_tests_skipped is TRUE (6): 'test-00-get_orgs-GitLab.R:258:3',
    'test-00-get_orgs-GitLab.R:277:3', 'test-00-get_orgs-GitLab.R:304:3',
    'test-05-get_files.R:91:3', 'test-get_pull_requests-02-GitLab.R:214:3',
    'test-get_release-GitHub.R:99:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-get_repos-GitLab.R:698:3'): parse_search_response works ─────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_error(httr2::req_body_json(httr2::req_headers(httr2::request(paste0(gql_api_url, "?")), Authorization = paste0("Bearer ", token)), list(query = gql_query, variables = vars)), is_error = function(resp) FALSE))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [gitlab.com]:
  Connection timed out after 10002 milliseconds
  Backtrace:
      ▆
   1. └─gitlab_testhost_priv$parse_search_response(...) at test-01-get_repos-GitLab.R:698:3
   2.   └─api_engine$get_repos(repos_ids = repos_ids, verbose = verbose)
   3.     └─private$get_repos_page(...)
   4.       └─self$gql_response(...)
   5.         └─GitStats:::graphql_response(...)
   6.           └─GitStats:::graphql_perform_request(...)
   7.             └─httr2::req_perform(...)
   8.               └─httr2:::handle_resp(req, resp, error_call = error_call)
   9.                 └─rlang::cnd_signal(resp)
  ── Failure ('test-01-get_repos-GitLab.R:1143:3'): `get_repo_url_from_response()` returns api URLs ──
  Expected `length(gl_repo_api_urls)` > 0.
  Actual comparison: 0.0 <= 0.0
  Difference: 0.0 <= 0
  ── Failure ('test-01-get_repos-GitLab.R:1144:3'): `get_repo_url_from_response()` returns api URLs ──
  Expected `gl_repo_api_urls` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_urls_repos-GitLab.R:127:3'): `get_repo_url_from_response()` works ──
  Expected `length(gl_repo_web_urls)` > 0.
  Actual comparison: 0.0 <= 0.0
  Difference: 0.0 <= 0
  ── Failure ('test-get_urls_repos-GitLab.R:128:3'): `get_repo_url_from_response()` works ──
  Expected `gl_repo_web_urls` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_urls_repos-GitLab.R:146:3'): get_repos_urls_with_code_from_orgs returns repositories URLS ──
  Expected `gl_repos_urls_with_code_from_orgs` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_urls_repos-GitLab.R:147:3'): get_repos_urls_with_code_from_orgs returns repositories URLS ──
  Expected `length(gl_repos_urls_with_code_from_orgs)` > 0.
  Actual comparison: 0.0 <= 0.0
  Difference: 0.0 <= 0
  ── Failure ('test-get_urls_repos-GitLab.R:165:3'): get_repos_urls_with_code_from_repos returns repositories URLS ──
  Expected `gl_repos_urls_with_code_from_repos` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_urls_repos-GitLab.R:166:3'): get_repos_urls_with_code_from_repos returns repositories URLS ──
  Expected `length(gl_repos_urls_with_code_from_repos)` > 0.
  Actual comparison: 0.0 <= 0.0
  Difference: 0.0 <= 0
  ── Failure ('test-get_urls_repos-GitLab.R:189:3'): get_repos_urls_with_code_from_repos returns repositories URLS ──
  Expected `gl_repos_urls_with_code_in_files` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_urls_repos-GitLab.R:190:3'): get_repos_urls_with_code_from_repos returns repositories URLS ──
  Expected `length(gl_repos_urls_with_code_in_files)` > 0.
  Actual comparison: 0.0 <= 0.0
  Difference: 0.0 <= 0
  ── Failure ('test-get_urls_repos-GitStats.R:36:3'): get_repos_urls_from_hosts gets data with_code in_files from the hosts ──
  Expected `any(grepl("gitlab.com", repos_urls_from_hosts_with_code_in_files))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-get_urls_repos-GitStats.R:108:3'): get_repos_urls gets vector of repository URLS ──
  Expected `length(repos_urls)` > 1.
  Actual comparison: 1.0 <= 1.0
  Difference: 0.0 <= 0
  ── Failure ('test-get_urls_repos-GitStats.R:132:3'): get_repos_urls gets vector of repository URLS ──
  Expected `length(repos_urls)` > 1.
  Actual comparison: 1.0 <= 1.0
  Difference: 0.0 <= 0
  
  [ FAIL 14 | WARN 0 | SKIP 157 | PASS 1382 ]
  Error:
  ! Test failures.
  Execution halted