Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branding fixes #2244

Merged
merged 5 commits into from
Jun 17, 2024

♻️ reverts changes to spec/tasks/rake_spec.rb

f02b90b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Branding fixes #2244

♻️ reverts changes to spec/tasks/rake_spec.rb
f02b90b
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Jun 17, 2024 in 0s

2 fail, 30 skipped, 1 721 pass in 16m 19s

    3 files  ±0      3 suites  ±0   16m 19s ⏱️ -22s
1 753 tests ±0  1 721 ✅  - 1  30 💤 ±0  2 ❌ +1 
1 772 runs  ±0  1 738 ✅  - 1  32 💤 ±0  2 ❌ +1 

Results for commit f02b90b. ± Comparison against earlier commit 68d553c.

Annotations

Check warning on line 0 in ./spec/tasks/rake_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Results

Rake tasks tenantize:task runs against all tenants (spec.tasks.rake_spec) failed

artifacts/spec-reports-2/rspec-2.xml [took 0s]
Raw output
(#<Account id: nil, tenant: nil, cname: nil, created_at: nil, updated_at: nil, solr_endpoint_id: nil, fcrepo_endpoint_id: nil, name: "first", redis_endpoint_id: nil, is_public: false, settings: {"smtp_settings"=>{"from"=>"", "user_name"=>"", "password"=>"", "address"=>"", "domain"=>"", "port"=>"", "authentication"=>"", "enable_starttls_auto"=>""}}, data_cite_endpoint_id: nil, search_only: false>).switch(no args)     expected: 1 time with any arguments     received: 2 times
Failure/Error:
  account.switch do
    Rake::Task[args.task_name].invoke(*args.extras)
    # Re-enable the task or it won't be run the next iteration
    Rake::Task[args.task_name].reenable
  end

  (#<Account id: nil, tenant: nil, cname: nil, created_at: nil, updated_at: nil, solr_endpoint_id: nil, fcrepo_endpoint_id: nil, name: "first", redis_endpoint_id: nil, is_public: false, settings: {"smtp_settings"=>{"from"=>"", "user_name"=>"", "password"=>"", "address"=>"", "domain"=>"", "port"=>"", "authentication"=>"", "enable_starttls_auto"=>""}}, data_cite_endpoint_id: nil, search_only: false>).switch(no args)
      expected: 1 time with any arguments
      received: 2 times
./lib/tasks/tenantize_task.rake:12:in `block (3 levels) in <top (required)>'
./lib/tasks/tenantize_task.rake:10:in `each'
./lib/tasks/tenantize_task.rake:10:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `block in execute'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `each'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `execute'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
./spec/support/rake.rb:10:in `block in run_task'
./spec/support/rake.rb:25:in `capture_stdout_stderr'
./spec/support/rake.rb:8:in `run_task'
./spec/tasks/rake_spec.rb:78:in `block (3 levels) in <top (required)>'
./spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'

Check warning on line 0 in ./spec/tasks/rake_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Results

Rake tasks tenantize:task when run against specified tenants runs against a single tenant and ignores bogus tenants (spec.tasks.rake_spec) failed

artifacts/spec-reports-2/rspec-2.xml [took 0s]
Raw output
(#<Account id: nil, tenant: nil, cname: nil, created_at: nil, updated_at: nil, solr_endpoint_id: nil, fcrepo_endpoint_id: nil, name: "first", redis_endpoint_id: nil, is_public: false, settings: {"smtp_settings"=>{"from"=>"", "user_name"=>"", "password"=>"", "address"=>"", "domain"=>"", "port"=>"", "authentication"=>"", "enable_starttls_auto"=>""}}, data_cite_endpoint_id: nil, search_only: false>).switch(no args)     expected: 1 time with any arguments     received: 2 times
Failure/Error:
  account.switch do
    Rake::Task[args.task_name].invoke(*args.extras)
    # Re-enable the task or it won't be run the next iteration
    Rake::Task[args.task_name].reenable
  end

  (#<Account id: nil, tenant: nil, cname: nil, created_at: nil, updated_at: nil, solr_endpoint_id: nil, fcrepo_endpoint_id: nil, name: "first", redis_endpoint_id: nil, is_public: false, settings: {"smtp_settings"=>{"from"=>"", "user_name"=>"", "password"=>"", "address"=>"", "domain"=>"", "port"=>"", "authentication"=>"", "enable_starttls_auto"=>""}}, data_cite_endpoint_id: nil, search_only: false>).switch(no args)
      expected: 1 time with any arguments
      received: 2 times
./lib/tasks/tenantize_task.rake:12:in `block (3 levels) in <top (required)>'
./lib/tasks/tenantize_task.rake:10:in `each'
./lib/tasks/tenantize_task.rake:10:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `block in execute'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `each'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `execute'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
./spec/support/rake.rb:10:in `block in run_task'
./spec/support/rake.rb:25:in `capture_stdout_stderr'
./spec/support/rake.rb:8:in `run_task'
./spec/tasks/rake_spec.rb:98:in `block (4 levels) in <top (required)>'
./spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'