-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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-Engine: Persist daily reports to GCS #22662
Conversation
Airbyte Code Coverage
|
def persist_qa_report(qa_report: pd.DataFrame, path: str, public_fields_only: bool =True): | ||
|
||
def persist_qa_report(qa_report: pd.DataFrame, path: str, public_fields_only: bool = True) -> str: | ||
report_generation_date = datetime.strftime(qa_report["report_generation_datetime"].max(), "%Y%m%d") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is report_generation_datetime
different for each row in the qa_report?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No its the same value on each row for a report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
schedule: | ||
# 1pm UTC is 6am PDT. | ||
# same time as Generate Build Report | ||
- cron: "0 13 * * *" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 turn it on!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not comments from me, looks good!
@@ -32,3 +32,4 @@ jobs: | |||
QA_ENGINE_AIRBYTE_DATA_PROD_SA: "${{ secrets.QA_ENGINE_AIRBYTE_DATA_PROD_SA }}" | |||
GITHUB_API_TOKEN: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }} | |||
run: run-qa-engine | |||
# run: run-qa-engine --create-prs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could use a TODO or a NOTE on when to uncomment and who owns it
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def main(): | ||
@click.command() | ||
@click.option("--create-prs", is_flag=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice
What
@airbytehq/airbyte-analytics created a dedicated private bucket to store QA reports.
I want to make the QA engine write these reports to GCS in JSONL with generation in the file names.
It will be available on metabase here
How
persist_qa_report
function