Skip to content

Error: Failed to open repository at path: /home/runner/work/repo_name/repo_name #153

@weiji14

Description

@weiji14

Hi there,

I'm trying to use CodSpeedHQ/action@v4.3.3 on the Ubuntu 24.04 runner, but with a custom docker container (ghcr.io/osgeo/gdal:ubuntu-small-3.11.5 based on Ubuntu 24.04) like so:

jobs:
  rust:
    runs-on: ubuntu-24.04
    container:
      image: ghcr.io/osgeo/gdal:ubuntu-small-3.11.5
      options: --privileged

The benchmarks were able to run successfully, but an error showed up during upload (full logs here):

  ...
  Finished running 1 benchmark suite(s)
Uploading performance data
  Error: Error: Failed to open repository at path: /home/runner/work/repo_name/repo_name/
  Error: Error: failed to resolve path '/home/runner/work/repo_name/repo_name/': No such file or directory; class=Os (2); code=NotFound (-3)
  Error: Process completed with exit code 1.

Had a look around and it might be due to this line: https://github.com/CodSpeedHQ/runner/blob/7bae2d436a775f16a2bf5227c91e27f470ca63cc/src/run/run_environment/github_actions/provider.rs#L93, which hardcodes to use /home/runner/work/{repository}/{repository} based on the default GitHub Actions runner.

I've tried setting a working-directory in this commit, but that didn't seem to work. Just wondering if there's any other solution to get this to work with custom containers that are still Ubuntu-based?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions