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

qa_checks.py crashing in /test commands #22127

Closed
evantahler opened this issue Jan 31, 2023 · 5 comments · Fixed by #22184
Closed

qa_checks.py crashing in /test commands #22127

evantahler opened this issue Jan 31, 2023 · 5 comments · Fixed by #22184
Assignees
Labels
from/connector-ops type/bug Something isn't working

Comments

@evantahler
Copy link
Contributor

evantahler commented Jan 31, 2023

From https://github.com/airbytehq/airbyte/actions/runs/4050865951/jobs/6968665380

Traceback (most recent call last):
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/bin/run-qa-checks", line 33, in <module>
    sys.exit(load_entry_point('ci-connector-ops==0.1.10', 'console_scripts', 'run-qa-checks')())
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/bin/run-qa-checks", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/site-packages/ci_connector_ops/qa_checks.py", line 8, in <module>
    from ci_connector_ops.utils import Connector
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/site-packages/ci_connector_ops/utils.py", line 19, in <module>
    AIRBYTE_REPO = git.Repo(".")
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/site-packages/git/repo/base.py", line 282, in __init__
    self.working_dir: Optional[PathLike] = self._working_tree_dir or self.common_dir
  File "/actions-runner/_work/_tool/Python/3.9.16/x64/lib/python3.9/site-packages/git/repo/base.py", line 363, in common_dir
    raise InvalidGitRepositoryError()
git.exc.InvalidGitRepositoryError

One idea is that the /test command does a shallow clone, and perhaps we need the full git history? We might not need the git utility here, so we might be able to skip the initialization of the git object entirely.

AIRBYTE_REPO = git.Repo(".")

@evantahler evantahler added from/connector-ops type/bug Something isn't working labels Jan 31, 2023
@evantahler evantahler changed the title qa_checks.py crashing qa_checks.py crashing in /test commands Jan 31, 2023
@bnchrch bnchrch self-assigned this Jan 31, 2023
@bnchrch
Copy link
Contributor

bnchrch commented Jan 31, 2023

@evantahler I was just looking into this.

From what I can tell youre on the right track

Its likely due to the checkout action only taking the latest commit and running

https://github.com/actions/checkout

Putting up a PR right now to disable the QA-engine check

Afterwards we can decide how to tackle.

I imagine if we start pulling in the git history into every runner we might see a large increase in build time. Worth testing

@erohmensing
Copy link
Contributor

FWIW, test commands have been working fine for me today and yesterday 🤔 @evantahler where did this run come from?

@flash1293
Copy link
Contributor

@erohmensing I think #22131 fixed it for now

@erohmensing
Copy link
Contributor

Ah right, okay. Thanks! Ignore me lol

@bnchrch
Copy link
Contributor

bnchrch commented Feb 1, 2023

@erohmensing current work is being done here #22184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from/connector-ops type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants