Error building clean clone

image

Hey i want to contributing by trying to fix this issue (since we’re on a deadline).
I followed the developing-locally.md

  • Forked the repository
  • Cloned the Fork
  • Executed “SUB_BUILD=PLATFORM ./gradlew build”

Edit 2:
Since building the connector and running integration tests on it is working, do i need the platform? Or is it possible to just build the connector and use it in a local docker environment for testing?


But this already fails:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':airbyte-proxy:bashTest'.
> A problem occurred starting process 'command './test.sh''

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':airbyte-commons:test'.
> There were failing tests. See the report at: file:///G:/Programming/Forks/airbyte/airbyte-commons/build/reports/tests/test/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
==============================================================================

Besides a handfull of tests that failes, i get some errors:

 [   ERROR] Invalid connector manifest with error: Validation against auto-generated schema failed - Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 192, in _validate_source
    validate(full_config, declarative_source_schema)
  File "/usr/local/lib/python3.9/site-packages/jsonschema/validators.py", line 934, in validate
    raise error
jsonschema.exceptions.ValidationError: 'streams' is a required property

------------------i cutted some Output, see log file for full log--------------

Traceback (most recent call last):
  File "/home/connector_builder/impl/default_api.py", line 297, in _create_low_code_adapter
    return self.adapter_factory.create(manifest)
  File "/home/connector_builder/impl/low_code_cdk_adapter.py", line 75, in create
    return LowCodeSourceAdapter(manifest, self._max_pages_per_slice, self._max_slices)
  File "/home/connector_builder/impl/low_code_cdk_adapter.py", line 19, in __init__
    self._source = ManifestDeclarativeSource(
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 87, in __init__
    self._validate_source()
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 194, in _validate_source
    raise ValidationError("Validation against auto-generated schema failed") from e
jsonschema.exceptions.ValidationError: Validation against auto-generated schema failed
 (default_api.py:300)
-------------------------------- live log call ---------------------------------
2023-02-14 09:11:48 [   ERROR] Could not perform read with with error: Every message grouping should have at least one request and response - Traceback (most recent call last):
  File "/home/connector_builder/impl/default_api.py", line 138, in read_stream
    for message_group in self._get_message_groups(
  File "/home/connector_builder/impl/default_api.py", line 240, in _get_message_groups
    self._close_page(current_page_request, current_page_response, current_slice_pages, current_page_records)
  File "/home/connector_builder/impl/default_api.py", line 254, in _close_page
    raise ValueError("Every message grouping should have at least one request and response")
ValueError: Every message grouping should have at least one request and response
 (default_api.py:149)
PASSED              
 ERROR] Could not resolve manifest with error: check - Traceback (most recent call last):
  File "/home/connector_builder/impl/default_api.py", line 181, in resolve_manifest
    manifest=ManifestDeclarativeSource(
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 87, in __init__
    self._validate_source()
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 182, in _validate_source
    full_config["check"] = self._legacy_source_config["check"]
KeyError: 'check'
 (default_api.py:186)

The complete log: log.txt (289.1 KB)

And since the build is not working i can’t run the project.

Any idea if i missed something?

Edit:

if i run: $ VERSION=dev docker compose up, this is the error: (I guess the same reason the build doesnt work)

time="2023-02-14T12:15:07+01:00" level=warning msg="The \"NEW_SCHEDULER\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"SECRET_PERSISTENCE\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"JOB_ERROR_REPORTING_SENTRY_DSN\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"WORKER_ENVIRONMENT\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"GITHUB_STORE_BRANCH\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"DEPLOYMENT_MODE\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"REMOTE_CONNECTOR_CATALOG_URL\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"TEMPORAL_HISTORY_RETENTION_IN_DAYS\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"UPDATE_DEFINITIONS_CRON_ENABLED\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"DEPLOYMENT_MODE\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"LOG_CONNECTOR_MESSAGES\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"SHOULD_RUN_NOTIFY_WORKFLOW\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"SECRET_PERSISTENCE\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"JOB_ERROR_REPORTING_SENTRY_DSN\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"APPLY_FIELD_SELECTION\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"FIELD_SELECTION_WORKSPACES\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"STRICT_COMPARISON_NORMALIZATION_WORKSPACES\" variable is not set. Defaulting to a blank string."
time="2023-02-14T12:15:07+01:00" level=warning msg="The \"STRICT_COMPARISON_NORMALIZATION_TAG\" variable is not set. Defaulting to a blank string."
worker Pulling
webapp Pulling
airbyte-cron Pulling
airbyte-connector-builder-server Pulling
bootloader Pulling
server Pulling
f5371f42f94d Pulling fs layer
dd8e9ce13317 Pulling fs layer
2c74a6c91a79 Pulling fs layer
35019922f158 Pulling fs layer
ccbd6a350bcb Pulling fs layer
9e250ac12296 Pulling fs layer
4f4fb700ef54 Pulling fs layer
a89c0570f602 Pulling fs layer
ccbd6a350bcb Waiting
4f4fb700ef54 Waiting
540db60ca938 Pulling fs layer
197dc8475a23 Pulling fs layer
39ea657007e5 Pulling fs layer
35019922f158 Waiting
a89c0570f602 Waiting
9e250ac12296 Waiting
197dc8475a23 Waiting
37afbf7d4c3d Pulling fs layer
0c01f42c3df7 Pulling fs layer
d590d87c9181 Pulling fs layer
578047095ac5 Pulling fs layer
0c01f42c3df7 Waiting
5a4788dc8dc6 Pulling fs layer
d0e6e7203053 Pulling fs layer
84666f088b45 Pulling fs layer
d590d87c9181 Waiting
540db60ca938 Waiting
d0e6e7203053 Waiting
578047095ac5 Waiting
5a4788dc8dc6 Waiting
84666f088b45 Waiting
39ea657007e5 Waiting
461246efe0a7 Pulling fs layer
e693ef00b582 Pulling fs layer
6719c5c2d2f8 Pulling fs layer
1c71e1e78428 Pulling fs layer
0183b45fc6b2 Pulling fs layer
1c71e1e78428 Waiting
e693ef00b582 Waiting
461246efe0a7 Waiting
airbyte-connector-builder-server Error
worker Error
bootloader Error
Error response from daemon: manifest for airbyte/connector-builder-server:dev not found: manifest unknown: manifest unknown

Hello there! You are receiving this message because none of your fellow community members has stepped in to respond to your topic post. (If you are a community member and you are reading this response, feel free to jump in if you have the answer!) As a result, the Community Assistance Team has been made aware of this topic and will be investigating and responding as quickly as possible.
Some important considerations that will help your to get your issue solved faster:

  • It is best to use our topic creation template; if you haven’t yet, we recommend posting a followup with the requested information. With that information the team will be able to more quickly search for similar issues with connectors and the platform and troubleshoot more quickly your specific question or problem.
  • Make sure to upload the complete log file; a common investigation roadblock is that sometimes the error for the issue happens well before the problem is surfaced to the user, and so having the tail of the log is less useful than having the whole log to scan through.
  • Be as descriptive and specific as possible; when investigating it is extremely valuable to know what steps were taken to encounter the issue, what version of connector / platform / Java / Python / docker / k8s was used, etc. The more context supplied, the quicker the investigation can start on your topic and the faster we can drive towards an answer.
  • We in the Community Assistance Team are glad you’ve made yourself part of our community, and we’ll do our best to answer your questions and resolve the problems as quickly as possible. Expect to hear from a specific team member as soon as possible.

Thank you for your time and attention.
Best,
The Community Assistance Team