Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing GitHub tests in CI with recent git version #3873

Closed
boegel opened this issue Oct 26, 2021 · 2 comments · Fixed by #3879
Closed

failing GitHub tests in CI with recent git version #3873

boegel opened this issue Oct 26, 2021 · 2 comments · Fixed by #3879
Assignees
Milestone

Comments

@boegel
Copy link
Member

boegel commented Oct 26, 2021

There's two tests failing in CI in the develop branch currently (these are skipped for PRs because they require a GitHub token).

These tests still work fine locally for me though, so the failures are probably related to a more recent git version?

Example: https://github.com/easybuilders/easybuild-framework/runs/3997592444?check_suite_focus=true

ERROR: test_github_new_pr_from_branch (test.framework.options.CommandLineOptionsTest)
Test --new-pr-from-branch.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/options.py", line 4093, in test_github_new_pr_from_branch
    txt, _ = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False)
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/options.py", line 3989, in _run_mock_eb
    self.eb_main(args, **kwargs)
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/utilities.py", line 336, in eb_main
    raise myerr
GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git pull github_easybuilders_MqDkh develop
  stderr: 'From https://github.com/easybuilders/easybuild-easyconfigs
 * branch                  develop    -> FETCH_HEAD
 * [new branch]            develop    -> github_easybuilders_MqDkh/develop
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.'

======================================================================
ERROR: test_github_sync_branch_with_develop (test.framework.options.CommandLineOptionsTest)
Test use of --sync-branch-with-develop (dry run only).
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/options.py", line 4399, in test_github_sync_branch_with_develop
    stdout, stderr = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False)
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/options.py", line 3989, in _run_mock_eb
    self.eb_main(args, **kwargs)
  File "/tmp/runner/16737b45482bb04e594de245f4d4c6966a3b72e7/lib/python2.7/site-packages/test/framework/utilities.py", line 336, in eb_main
    raise myerr
GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git pull github_easybuilders_XvNCt develop
  stderr: 'From https://github.com/easybuilders/easybuild-easyconfigs
 * branch                  develop    -> FETCH_HEAD
 * [new branch]            develop    -> github_easybuilders_XvNCt/develop
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.'
@boegel
Copy link
Member Author

boegel commented Oct 26, 2021

@migueldiascosta This is going to be a problem for the upcoming release...

Do you have time to take a closer look at this in the coming days?

@migueldiascosta
Copy link
Member

@boegel seems to be due to this git/git@031e2f7 ? The versions match...

isn't it just a matter of setting the reconciliation strategy?

@boegel boegel changed the title failing GitHub tests in CI failing GitHub tests in CI with recent git version Oct 27, 2021
boegel added a commit to boegel/easybuild-framework that referenced this issue Oct 27, 2021
…e commit, since not specifying how to reconcile divergent branches is an error with Git 2.33.1 and newer (fixes easybuilders#3873)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment