Skip to content

Update scheduled-validation.yml#19

Open
mr-adonis-jimenez wants to merge 2 commits into
mainfrom
mr-adonis-jimenez-patch-12
Open

Update scheduled-validation.yml#19
mr-adonis-jimenez wants to merge 2 commits into
mainfrom
mr-adonis-jimenez-patch-12

Conversation

@mr-adonis-jimenez

Copy link
Copy Markdown
Owner

Add scheduled validation workflow with manual trigger

Adds daily automated validation at 2 AM UTC with option to trigger manually. Includes input parameters for validation type and test configuration.

Add scheduled validation workflow with manual trigger

Adds daily automated validation at 2 AM UTC with option to trigger manually.
Includes input parameters for validation type and test configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d2b8012e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +31 to +34
- name: Determine validation type
id: config
run: |
pip install --upgrade pip psycopg2-binary

- name: Apply schema
env:
PGPASSWORD: validation_password
run: |
psql -h localhost -U retail_admin -d retail_analytics_nightly -f schema/schema.sql -v ON_ERROR_STOP=1

- name: Load sample data
env:
PGHOST: localhost
PGUSER: retail_admin
PGPASSWORD: validation_password
PGDATABASE: retail_analytics_nightly
run: |
python scripts/generate_data.py

- name: Run all queries
env:
PGPASSWORD: validation_password
run: |
for sql_file in queries/*.sql; do
echo "Running: $sql_file"
psql -h localhost -U retail_admin -d retail_analytics_nightly -f "$sql_file"
done
# When triggered by schedule, use 'full' validatio

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore actual validation steps

The scheduled workflow now ends after a no-op “Determine validation type” step, so it never applies the schema, loads data, or runs any queries/tests. That means both the nightly schedule and manual dispatch will succeed without validating anything, which defeats the purpose of this workflow and can let regressions slip through unnoticed. If this is intentional, a separate validation job needs to be added; otherwise the removed steps need to be reinstated.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant