Skip to content

Potential issues introduced by fix: skip head merge commits on pull requests #6452

Closed

Description

@jedevc

A small issue potentially introduced by #6253 (cc @grouville @marcosnils)

So, prior to this PR, we didn't perform any network operations when starting a dagger session. However, after this, we start doing git operations. My worry is that this has introduced subtle bugs with how this works.

I've seen this weird message appear fairly consistently throughout our logs (failure https://github.com/dagger/dagger/actions/runs/7571487756/job/20619120120?pr=6451, success https://github.com/dagger/dagger/actions/runs/7653266578/job/20854758251?pr=6496) - not quite sure how/why we see this though:

1: > in init
1: starting engine 
Error: timed out waiting for session params: Error fetching branch: error fetching branch from origin: exit status 128Error fetching branch: error getting commit: object not found1: connect
: > in init
1: starting engine 
1: starting engine [0.00s]
1: starting session 
Error fetching branch: error fetching branch from origin: exit status 128Error fetching branch: error adding fork as remote: exit status 31: [0.40s] OK!
1: starting session [0.40s]
1: connect DONE
OK!

This is pretty consistent - the error doesn't appear to be fatal (the fatal case is caused by an internal infra issue and is being investigated separately)

Activity

  1. grouville commented on Jan 18, 2024

    @grouville
    Member

    Nice one 🙏

  2. marcosnils commented on Jan 19, 2024

    @marcosnils
    Contributor

    strange that we're seeing that now since that has been merged a while back 🤔
    once thing that I've noticed is that we never added a timeout to the git fetch operation. It'd be nice to have a timeout there and probably just log the error and continue executing the pipeline?

  3. jedevc commented on Jan 25, 2024

    @jedevc
    ContributorAuthor

    My initial assessment was wrong 🎉

    There are two issues at play here:

    I'll update the issue description to focus instead on the first issue.

  4. marcosnils commented on Jan 25, 2024

    @marcosnils
    Contributor
    • The Error: timed out waiting for session params is related to an internal infrastructure issue with our cloud caching service.

    Have we validated that it's because of caching every time? For example, today I saw this issue while merging a PR here https://github.com/dagger/dagger.io/actions/runs/7659846458/job/20875876380#step:7:41 but we didn't observe any caching incidents or elevated response times.

    @gerhard @matipan let's get together when possible since it's very hard to understand what's happening here if we can't can't get the engine logs for that runner VM.

  5. gerhard commented on Jan 26, 2024

    @gerhard
    Contributor

    A few quick solutions to not being able to get the Engine logs from the dagger-runner:

    • Use a Dagger in Docker approach, similar to how dev-engine does it:
      if [ "${{ inputs.dev-engine }}" == "true" ]
      then
      ./hack/dev
      export _EXPERIMENTAL_DAGGER_CLI_BIN="$PWD/bin/dagger"
      chmod +x $_EXPERIMENTAL_DAGGER_CLI_BIN
      export _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-container://dagger-engine.dev
    • While debugging, run this temporarily in a GitHub Runner explicitly, i.e.
      runs-on: ubuntu-latest

    Rather than getting Engine logs out of the current Dagger Runners setups, I am most keen on finishing the migration to the new EKS CI cluster. We've been delaying it for over a month now, I really want us to move away from this:

    image

  6. marcosnils commented on Jan 26, 2024

    @marcosnils
    Contributor

    Rather than getting Engine logs out of the current Dagger Runners setups, I am most keen on finishing the migration to the new EKS CI cluster. We've been delaying it for over a month now, I really want us to move away from this:

    yes, SGTM! It's relatively easy for us (infra access) to get the engine logs via kubectl for the moment, so we're good on that front. 👍

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions