Repository navigation
feat(ingestion): bootstrap-db — generate connectors-ddl snapshot #1892
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
Merged
mitasovr
merged 14 commits into
constructorfabric:main
from
mitasovr:claude/connectors-ddl-1831
Jul 27, 2026
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f4d01d6
feat(ingestion): generate connectors-ddl snapshot on CH 25.7.5
96cc3aa
ci(ingestion): remind to regenerate the connectors-ddl snapshot
65ef7c4
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr 499c295
fix(bootstrap-db): fail loud on partial dumps and dbt runs
938529d
fix(e2e): resolve declarative skip before fixture resolution
39387a7
docs(bootstrap-db): document manual connectors-ddl regeneration
e3c7823
ci: pin actions/github-script to a commit SHA
9d9ab03
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr b78ea44
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr a3ea1ae
fix(github-v2): count merge parents from JSON-string parent_hashes
449920c
test(e2e): refresh git_metrics fixture to github-v2, drop skip
4e2a774
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr 199e030
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr 8c646a7
Merge branch 'main' into claude/connectors-ddl-1831
mitasovr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # Reminds contributors to regenerate the committed connectors-ddl snapshot when a | ||
| # PR touches src/ingestion. The snapshot (scripts/connectors-ddl/*.sql) is | ||
| # regenerated MANUALLY (see src/ingestion/scripts/bootstrap-db/), so this workflow | ||
| # is only a nudge — it does NOT run the regeneration and pushes nothing. | ||
| # | ||
| # Uses pull_request_target so the token can comment on fork PRs too (a plain | ||
| # pull_request from a fork gets a read-only token). This is safe here because the | ||
| # job never checks out or executes PR code and uses no secrets — it only reads the | ||
| # changed-file list (via the paths filter) and posts a single sticky comment. | ||
| # | ||
| # NB: pull_request_target always uses the workflow file from the base branch, so | ||
| # this takes effect only once merged to main. | ||
| name: connectors-ddl reminder | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, synchronize, reopened] | ||
| paths: | ||
| - "src/ingestion/**" | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| remind: | ||
| name: Remind to regenerate connectors-ddl | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| // Sticky marker: post the reminder at most once per PR (not per push). | ||
| const marker = '<!-- connectors-ddl-regen-reminder -->'; | ||
| const { owner, repo } = context.repo; | ||
| const issue_number = context.payload.pull_request.number; | ||
| const existing = await github.paginate(github.rest.issues.listComments, { | ||
| owner, repo, issue_number, per_page: 100, | ||
| }); | ||
| if (existing.some((c) => c.body && c.body.includes(marker))) return; | ||
| const body = [ | ||
| marker, | ||
| '### ⚠️ Regenerate the connectors-ddl snapshot', | ||
| '', | ||
| 'This PR changes `src/ingestion/**`. If your change affects any', | ||
| 'bronze / silver / gold schema, regenerate the committed DDL snapshot', | ||
| 'and include it in this PR:', | ||
| '', | ||
| '```bash', | ||
| 'cd src/ingestion/scripts/bootstrap-db', | ||
| 'set -a; source pins.env; source .env; set +a', | ||
| './bootstrap-db.sh connectors-config.yaml # fresh ClickHouse 25.7.5', | ||
| './dump-ddl.sh # writes scripts/connectors-ddl/*.sql', | ||
| '```', | ||
| '', | ||
| 'Commit the resulting `scripts/connectors-ddl/*.sql` diff. If nothing', | ||
| 'changed, no snapshot update is needed. (Regeneration is manual for now.)', | ||
| ].join('\n'); | ||
| await github.rest.issues.createComment({ owner, repo, issue_number, body }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
docs/domain/ingestion/specs/ADR/0007-fresh-cluster-placeholders.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.