Skip to content

[BUG] Benchmarks no longer run after refactor #496

Closed

Description

@beeme1mr

Observed behavior

The nightly benchmark GitHub action no longer succeeds after the refactor.

Here's the step that fails:

Run set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./... | tee output.txt
pattern ./...: directory prefix . does not contain main module or its selected dependencies
Error: Process completed with exit code 1.

And a link to a failed run:

https://github.com/open-feature/flagd/actions/runs/4400751617/jobs/7706332843

Expected Behavior

The benchmarks should run successfully.

Steps to reproduce

No response

Activity

  1. added
    bug
    Needs Triage
    and removed
    Needs Triage
    on Mar 13, 2023
  2. odubajDT commented on Mar 20, 2023

    @odubajDT
    Contributor

    Hi, can you please assign me this ticket? Thank you

  3. beeme1mr commented on Mar 24, 2023

    @beeme1mr
    MemberAuthor

    Hey @odubajDT, it looks like this unfortunately didn't resolve the issue. Would you mind taking another look when you have a moment?

    https://github.com/open-feature/flagd/actions/runs/4507101117

  4. beeme1mr commented on Mar 24, 2023

    @beeme1mr
    MemberAuthor

    Here's the error output:

    Run set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./core/... | tee output.txt
      set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./core/... | tee output.txt
      shell: /usr/bin/bash -e {0}
      env:
        GO_VERSION: 1.19.[3](https://github.com/open-feature/flagd/actions/runs/4507101117/jobs/7934553491#step:4:3)
    pattern ./core/...: directory prefix core does not contain main module or its selected dependencies
    Error: Process completed with exit code 1.
  5. odubajDT commented on Mar 24, 2023

    @odubajDT
    Contributor

    thanks for noticing, sure will have a look 👍

  6. odubajDT commented on Mar 25, 2023

    @odubajDT
    Contributor

    @beeme1mr I might found the problem, the workspace initialization seems to be missing before executing the benchmark (same as it works during the PR check pipeline). Hopefully with this PR it will be fixed #564, although I do not have the possibility to test it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions