<@U04S8PLJWMT> I created a pull request for my con...
# ask-ai
d
@kapa.ai I created a pull request for my connector and now it has some validation errors when running QA checks, first one is this,
Copy code
Run # Exit with code 1 if the CDK is not pinned to a standard version.
Poe the Poet (version 0.37.0)

Error: Unrecognized task 'detect-cdk-prerelease'

Usage:
  poe [global options] task [task arguments]

Global options:
  -h [TASK], --help [TASK]
                        Show this help page and exit, optionally supply a
                        task.
  --version             Print the version and exit
  -v, --verbose         Increase output (repeatable)
  -q, --quiet           Decrease output (repeatable)
  -d, --dry-run         Print the task contents but don't actually run it
  -C PATH, --directory PATH
                        Specify where to find the pyproject.toml
  -e EXECUTOR, --executor EXECUTOR
                        Override the default task executor
  --ansi                Force enable ANSI output
  --no-ansi             Force disable ANSI output

Configured tasks:
  get-connector-name          
  fetch-secrets               
  install                     
  install-cdk-cli             
  install-unit-tests-project  
  test-all                    
  test-unit-tests             
  test-integration-tests      
  format-check                
  lint-check                  
  lock                        
  get-language                Get the language of the connector from its metadata.yaml file. Use with -qq to get just the language name.
  get-base-image              Get the base image of the connector from its metadata.yaml file.
  get-version                 Get the version of the connector from its metadata.yaml file.
  run-cat-tests               Run the legacy Airbyte-CI acceptance tests (CAT tests).


Error: Process completed with exit code 1.
k
The error message you’re seeing indicates that the QA check is trying to run a Poe task called detect-cdk-prerelease, but this task is not defined in your connector’s poe configuration. The list of available Poe tasks (as shown in your error output) does not include detect-cdk-prerelease. This usually means one of the following: - Your connector’s poe_tasks configuration is missing this task. - The QA check expects a newer or different set of poe_tasks than what is present in your branch. What you can do: 1. Update your branch with the latest changes from the main Airbyte repository. Sometimes, new QA checks require new tasks to be present in the poe_tasks directory or in your connector’s configuration. Make sure your branch is up to date with the latest main branch, as this may include the required task definitions. 2. Check the poe_tasks directory: The global Poe task definitions for connectors are found in the poe_tasks directory at the root of the Airbyte repo. If you’re missing a required task, it may be defined there in the latest version of the repo. You can reference or copy the relevant task definition if needed. 3. If you’re still missing the task after updating: - Double-check that your connector’s pyproject.toml and related files are not overriding or omitting required tasks. - If the problem persists, it may be a misconfiguration or a missing update in the Airbyte repo itself. In that case, consider reaching out to the Airbyte community or maintainers for guidance. Reference: You can find more about Poe tasks and how to list them in the documentation. Run poe from your connector directory to see available tasks. If a required task is missing, updating your branch is the recommended first step. Poe tasks are defined to help with common development and QA tasks, but they must be present in your configuration to be used by the QA checks. [Developing Connectors Locally - Tooling](https://docs.airbyte.com/platform/1.8/connector-development/local-connector-development#tooling) If you need more specific guidance on the detect-cdk-prerelease task, the knowledge sources do not provide explicit details about this particular task or how to add it. If updating your branch does not resolve the issue, please consult the Airbyte community or maintainers.
d
@kapa.ai What should I expect to see in the pyproject.toml relates to this task ?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain any information about the detect-cdk-prerelease task or what should be present in the pyproject.toml file specifically related to this task. The documentation covers general requirements for pyproject.toml—such as using Poetry for dependency management, matching license and version fields with metadata.yaml, and following semantic versioning—but does not mention the detect-cdk-prerelease task or any related configuration in pyproject.toml [Airbyte connectors QA checks - Packaging](https://docs.airbyte.com/platform/1.8/contributing-to-airbyte/resources/qa-checks#-packaging). If you need details about this specific task, I recommend reaching out to the Airbyte community or maintainers for further guidance.
d
@kapa.ai This tells about a standard version,
Exit with code 1 if the CDK is not pinned to a standard version.
. Meaning am I not using standard version ? this is inside the pyproject.toml,
Copy code
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
airbyte-cdk = "6.61.0"
pyarrow = ">=16.1,<22.0"
pandas = "2.2.2"
k
A message from kapa.ai
Based on the information in your pyproject.toml:
Copy code
toml [tool.poetry.dependencies] python = ">=3.10,<3.12" airbyte-cdk = "6.61.0" pyarrow = ">=16.1,<22.0" pandas = "2.2.2"
The QA check message "Exit with code 1 if the CDK is not pinned to a standard version" means that your connector must specify a fixed (pinned) version of the airbyte-cdk dependency, rather than a version range or a pre-release version. In your case, you have:
Copy code
airbyte-cdk = "6.61.0"
This is a pinned version (not a range like
^6.61.0
or
>=6.61.0
), and it is not a pre-release (such as
6.61.0-beta
). According to the packaging QA checks, connectors must use Poetry for dependency management and should have dependencies pinned to specific versions to ensure reproducibility and compatibility [Airbyte connectors QA checks - Packaging](https://docs.airbyte.com/platform/1.8/contributing-to-airbyte/resources/qa-checks#-packaging). However, the knowledge sources do not provide a list of what is considered a "standard version" for airbyte-cdk, nor do they specify which versions are currently accepted by the QA checks. If you are still seeing this error, it may be due to: - The QA check expecting a different (possibly newer) standard version of airbyte-cdk. - A mismatch between the expected and actual version in your pyproject.toml. What you should do: - Ensure your branch is up to date with the latest Airbyte main branch, as the definition of "standard version" may change. - Double-check if there are any project-specific guidelines or documentation updates regarding the required airbyte-cdk version. If you are still unsure, the knowledge sources do not provide enough detail to determine exactly which versions are considered "standard." In this case, reaching out to the Airbyte community or maintainers for clarification is recommended.