Skip to content

Fix No such file or directory in delete job

Tiffany Rea requested to merge fix-download-resources-step into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Fixing no directory error in delete-failed-test-resources job https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/6599444

$ cd /home/gitlab/qa
$ bundle exec rake "test_resources:download[$CI_PROJECT_NAME]"
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/failed-test-resources-04cb4d.json
/home/gitlab/qa/qa/tools/test_resources_handler.rb:88:in `write'
/home/gitlab/qa/qa/tools/test_resources_handler.rb:88:in `block in download'
/home/gitlab/qa/qa/tools/test_resources_handler.rb:84:in `each'
/home/gitlab/qa/qa/tools/test_resources_handler.rb:84:in `download'
/home/gitlab/qa/Rakefile:81:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli.rb:484:in `exec'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli.rb:31:in `dispatch'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/cli.rb:25:in `start'
/usr/local/bundle/gems/bundler-2.3.6/exe/bundle:48:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-2.3.6/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-2.3.6/exe/bundle:36:in `<top (required)>'
/usr/local/bundle/bin/bundle:23:in `load'
/usr/local/bundle/bin/bundle:23:in `<main>'
Tasks: TOP => test_resources:download
(See full trace by running task with --trace)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading