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

Stuck in middle of a scan #22

Open
frobnitzem opened this issue Jul 10, 2021 · 2 comments
Open

Stuck in middle of a scan #22

frobnitzem opened this issue Jul 10, 2021 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@frobnitzem
Copy link
Member

I was happily scanning along, and ran into an error cloning a repository. The code won't say which, but based on the last success, it was probably https://github.com/laristra/ristra.

Anyway, now there are two issues. How can I fix the code, and how can I resume the scan without re-doing 5 hours of (serial) work?

[2:10:37<17:22,  3.32s/it]✅ Routine (ANL-CESAR/XSBench --> CommitInfoMiningRoutineRequest) was successful!
 18%|█████████████▎                                                           | 70/383  18%|████████████▊                                                         | 70/383 [2:10:41<9:44:23, 112.02s/it]
Traceback (most recent call last):
  File "/Users/99r/work/ideas_ecp/repo-env/bin/reposcanner", line 33, in <module>
    sys.exit(load_entry_point('reposcanner', 'console_scripts', 'reposcanner')())
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/reposcanner.py", line 135, in run
    scannerMain(args)
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/reposcanner.py", line 69, in scannerMain
    manager.run(repositoriesDataFile,credentialsDataFile,configDataFile)
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/manager.py", line 284, in run
    self.executeWithNoGUI()
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/manager.py", line 293, in executeWithNoGUI
    task.process(self._routines+self._analyses,self._store,self._notebook)
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/manager.py", line 61, in process
    self._response = selectedAgent.run(self._request)
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/routines.py", line 46, in run
    response = self.execute(request)
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/routines.py", line 93, in execute
    raise e
  File "/Users/99r/work/ideas_ecp/reposcanner/src/reposcanner/routines.py", line 83, in execute
    session = pygit2.clone_repository(request.getRepositoryLocation().getURL(),
  File "/Users/99r/work/ideas_ecp/repo-env/lib/python3.9/site-packages/pygit2/__init__.py", line 222, in clone_repository
    payload.check_error(err)
  File "/Users/99r/work/ideas_ecp/repo-env/lib/python3.9/site-packages/pygit2/callbacks.py", line 93, in check_error
    check_error(error_code)
  File "/Users/99r/work/ideas_ecp/repo-env/lib/python3.9/site-packages/pygit2/errors.py", line 65, in check_error
    raise GitError(message)
_pygit2.GitError: remote authentication required but no callback set
@elaineraybourn
Copy link
Member

Hey David, I know the project lead of Ristra if for some reason that is helpful to you.

@rmmilewi rmmilewi added the bug Something isn't working label Jul 20, 2021
@rmmilewi rmmilewi self-assigned this Jul 20, 2021
@rmmilewi
Copy link
Member

@frobnitzem I'll look into this issue! The error message

_pygit2.GitError: remote authentication required but no callback set

is very informative. Probably just need to add in a time-out or other such callback to make sure Reposcanner doesn't get stuck when trying to clone an inaccessible repository.

The other part of this is to make a standard feature for all data mining routines to skip over doing mining routines that already have generated files associated with them (something we can enable via a CLI argument). I added this in for CommitInfoMiningRoutine on lines 39-42, but it really should be a standard feature.

@rmmilewi rmmilewi added the enhancement New feature or request label Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants