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

Update Pipelines folder structure #31525

Merged
merged 38 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0d1c6a2
First refactor pass
bnchrch Oct 17, 2023
d2b8802
fix script paths. when running install --force, you might have to del…
erohmensing Oct 17, 2023
d72aeb9
add bases back, fix some imports
erohmensing Oct 17, 2023
7a9e590
fix some more imports
erohmensing Oct 17, 2023
f9cbac0
move internal tools containers to containers. fix some more
erohmensing Oct 17, 2023
d9c3c73
bit of a hacky fix for circular imports on this one - come back to this
erohmensing Oct 17, 2023
a54dc06
move lots of stuff - some steps to pipelines/steps, internal tool con…
erohmensing Oct 17, 2023
b8ff63a
fixes
erohmensing Oct 17, 2023
586372c
airbyte ci help finally works :D
erohmensing Oct 17, 2023
01340fe
run formatter
erohmensing Oct 17, 2023
cd5aef3
fix extra numbers
erohmensing Oct 17, 2023
41ee5e2
add python licenses to airbyte ci
erohmensing Oct 17, 2023
a66caba
Bump version
bnchrch Oct 17, 2023
86b2fec
Add more inits
bnchrch Oct 18, 2023
a42f2f2
move list of internal tool paths to const file
erohmensing Oct 18, 2023
9f4ca1e
Automated Commit - Formatting Changes
erohmensing Oct 18, 2023
b4185a6
Update step imports
bnchrch Oct 18, 2023
c64a438
Automated Commit - Formatting Changes
bnchrch Oct 18, 2023
e4ba25d
Fix imports
bnchrch Oct 18, 2023
1b621a2
Fix imports
bnchrch Oct 18, 2023
1d44e62
example: add subcommands from other files manually. also make test work
erohmensing Oct 18, 2023
555c2e5
add connectors publish
erohmensing Oct 18, 2023
e5275b7
Fix imports
bnchrch Oct 18, 2023
b4f4c7b
Fix imports
bnchrch Oct 18, 2023
299f99f
add all connectors commands and fix truncated help texts for connecto…
erohmensing Oct 18, 2023
4449bc6
Fix imports test_utils
bnchrch Oct 18, 2023
4be0aa7
Fix imports test_common
bnchrch Oct 18, 2023
a4ca6e5
fix jinja template reference
erohmensing Oct 18, 2023
7506f2e
actually fix the jinja template
erohmensing Oct 18, 2023
894a3e2
Fix imports test_utils
bnchrch Oct 18, 2023
60f15f3
Fix imports test_publish
bnchrch Oct 18, 2023
c23224a
Fix imports test_connectors
bnchrch Oct 18, 2023
6dffb72
Automated Commit - Formatting Changes
bnchrch Oct 18, 2023
549d0e3
rename pipeline to airbyte_ci
erohmensing Oct 18, 2023
7e40db2
Update .gitignore
bnchrch Oct 18, 2023
e495869
Rename builds to build
bnchrch Oct 18, 2023
eb6dc66
Rename build to build_image
bnchrch Oct 18, 2023
aab73de
Automated Commit - Formatting Changes
bnchrch Oct 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix imports
  • Loading branch information
bnchrch committed Oct 18, 2023
commit b4f4c7b3c90ae11ead8fc89adfb0e136f27c5b14
14 changes: 7 additions & 7 deletions airbyte-ci/connectors/pipelines/tests/test_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import anyio
import pytest
from dagger import DaggerError
from pipelines.models import steps
from pipelines.models import steps, reports

pytestmark = [
pytest.mark.anyio,
Expand Down Expand Up @@ -85,23 +85,23 @@ def test_context(self, mocker):
return mocker.Mock()

def test_report_failed_if_it_has_no_step_result(self, test_context):
report = bases.Report(test_context, [])
report = reports.Report(test_context, [])
assert not report.success
report = bases.Report(test_context, [steps.StepResult(None, steps.StepStatus.FAILURE)])
report = reports.Report(test_context, [steps.StepResult(None, steps.StepStatus.FAILURE)])
assert not report.success

report = bases.Report(
report = reports.Report(
test_context, [steps.StepResult(None, steps.StepStatus.FAILURE), steps.StepResult(None, steps.StepStatus.SUCCESS)]
)
assert not report.success

report = bases.Report(test_context, [steps.StepResult(None, steps.StepStatus.SUCCESS)])
report = reports.Report(test_context, [steps.StepResult(None, steps.StepStatus.SUCCESS)])
assert report.success

report = bases.Report(
report = reports.Report(
test_context, [steps.StepResult(None, steps.StepStatus.SUCCESS), steps.StepResult(None, steps.StepStatus.SKIPPED)]
)
assert report.success

report = bases.Report(test_context, [steps.StepResult(None, steps.StepStatus.SKIPPED)])
report = reports.Report(test_context, [steps.StepResult(None, steps.StepStatus.SKIPPED)])
assert report.success
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest
from click.testing import CliRunner
from connector_ops.utils import METADATA_FILE_NAME, ConnectorLanguage
from pipelines.commands.groups import connectors
from pipelines.pipeline.connectors.commands import connectors
from pipelines.helpers.connectors.modifed import ConnectorWithModifiedFiles
from tests.utils import pick_a_random_connector

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import yaml
from freezegun import freeze_time
from pipelines.helpers.connectors.modifed import ConnectorWithModifiedFiles
from pipelines.models.bases import StepStatus
from pipelines.models.steps import StepStatus
from pipelines.pipeline.connectors.test.steps import common

pytestmark = [
Expand Down