Skip to content

Figure out what is breaking git filestore #6668

@jonathanmetzman

Description

@jonathanmetzman

Seeing errors like this:

Branch 'gh-pages' set up to track remote branch 'gh-pages' from 'origin'.
Your branch is up to date with 'origin/gh-pages'.
HEAD is now at 8293e2b initialize
2021-10-27 19:07:29,682 - root - ERROR - Retrying on GitFilestore._upload_to_git failed with could not create '/tmp/tmpt30pkl7b/coverage/latest/fuzzer_stats/fuzz-journald-native.json': No such file or directory. Raise.
Traceback (most recent call last):
  File "/usr/lib/python3.8/distutils/file_util.py", line 41, in _copy_file_contents
    fdst = open(dst, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpt30pkl7b/coverage/latest/fuzzer_stats/fuzz-journald-native.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py", line 102, in <module>
    sys.exit(main())
  File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py", line 98, in main
    return run_fuzzers_entrypoint()
  File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py", line 61, in run_fuzzers_entrypoint
    result = run_fuzzers.run_fuzzers(config)
  File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers.py", line 276, in run_fuzzers
    if not fuzz_target_runner.run_fuzz_targets():
  File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers.py", line 192, in run_fuzz_targets
    generate_coverage_report.generate_coverage_report(
  File "/opt/oss-fuzz/infra/cifuzz/generate_coverage_report.py", line 48, in generate_coverage_report
    clusterfuzz_deployment.upload_coverage()
  File "/opt/oss-fuzz/infra/cifuzz/clusterfuzz_deployment.py", line 197, in upload_coverage
    self.filestore.upload_coverage(self.COVERAGE_NAME,
  File "/opt/oss-fuzz/infra/cifuzz/filestore/git/__init__.py", line 129, in upload_coverage
    self._upload_to_git('Coverage upload',
  File "/opt/oss-fuzz/infra/retry.py", line 74, in _wrapper
    result = func(*args, **kwargs)
  File "/opt/oss-fuzz/infra/cifuzz/filestore/git/__init__.py", line 101, in _upload_to_git
    dir_util.copy_tree(local_path, full_repo_path)
  File "/usr/lib/python3.8/distutils/dir_util.py", line 170, in copy_tree
    copy_tree(src_name, dst_name, preserve_mode,
  File "/usr/lib/python3.8/distutils/dir_util.py", line 174, in copy_tree
    copy_file(src_name, dst_name, preserve_mode,
  File "/usr/lib/python3.8/distutils/file_util.py", line 151, in copy_file
    _copy_file_contents(src, dst)
  File "/usr/lib/python3.8/distutils/file_util.py", line 43, in _copy_file_contents
    raise DistutilsFileError(
distutils.errors.DistutilsFileError: could not create '/tmp/tmpt30pkl7b/coverage/latest/fuzzer_stats/fuzz-journald-native.json': No such file or directory

I suspect this is a problem with my storage repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions