Skip to content

Commit 35ea6e9

Browse files
authored
Enable qa-checks in test-command (#22184)
1 parent b5db7dc commit 35ea6e9

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

.github/workflows/test-command.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ jobs:
152152
retention-days: 3
153153
- name: Run QA checks for ${{ github.event.inputs.connector }}
154154
id: qa_checks
155-
# TODO: Disabled for on master until #22127 resolved
156-
if: contains(github.ref, 'feat-qa-engine')
155+
if: always()
157156
run: |
158157
run-qa-checks ${{ github.event.inputs.connector }}
159158
- name: Report Status

tools/ci_connector_ops/ci_connector_ops/utils.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
#
44

5-
65
from dataclasses import dataclass
76
import logging
87
from pathlib import Path
98
from typing import Dict, Optional, Set, Tuple, List
10-
import os
119
import git
1210
import requests
1311
import yaml
1412

15-
# ensure we are at the repository root
16-
os.chdir(os.path.dirname(os.path.abspath(__file__)))
17-
os.chdir('../../..')
18-
19-
AIRBYTE_REPO = git.Repo(".")
13+
AIRBYTE_REPO = git.Repo(search_parent_directories=True)
2014
DIFFED_BRANCH = "origin/master"
2115
OSS_CATALOG_URL = "https://storage.googleapis.com/prod-airbyte-cloud-connector-metadata-service/oss_catalog.json"
2216
CONNECTOR_PATH_PREFIX = "airbyte-integrations/connectors"
@@ -27,15 +21,12 @@
2721
DESTINATION_DEFINITIONS_FILE_PATH = "airbyte-config/init/src/main/resources/seed/destination_definitions.yaml"
2822
DEFINITIONS_FILE_PATH = {"source": SOURCE_DEFINITIONS_FILE_PATH, "destination": DESTINATION_DEFINITIONS_FILE_PATH}
2923

30-
3124
def download_catalog(catalog_url):
3225
response = requests.get(catalog_url)
3326
return response.json()
3427

35-
3628
OSS_CATALOG = download_catalog(OSS_CATALOG_URL)
3729

38-
3930
class ConnectorInvalidNameError(Exception):
4031
pass
4132

@@ -49,7 +40,6 @@ def read_definitions(definitions_file_path: str) -> Dict:
4940
def get_connector_name_from_path(path):
5041
return path.split("/")[2]
5142

52-
5343
def get_changed_acceptance_test_config(diff_regex: Optional[str]=None) -> Set[str]:
5444
"""Retrieve a list of connector names for which the acceptance_test_config file was changed in the current branch (compared to master).
5545

tools/status/report.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ CONNECTOR=$1
1515
REPOSITORY=$2
1616
RUN_ID=$3
1717
TEST_OUTCOME=$4
18-
19-
# TODO: Disabled for on master until #22127 resolved
20-
# QA_CHECKS_OUTCOME=$5
21-
QA_CHECKS_OUTCOME=success
18+
QA_CHECKS_OUTCOME=$5
2219

2320
# Ensure connector is prefixed with connectors/
2421
# TODO (ben): In the future we should just hard error if this is not the case

0 commit comments

Comments
 (0)