Skip to content

Agent files shared template#6017

Open
lennartkats-db wants to merge 2 commits into
agent-files-in-templatefrom
agent-files-shared-template
Open

Agent files shared template#6017
lennartkats-db wants to merge 2 commits into
agent-files-in-templatefrom
agent-files-shared-template

Conversation

@lennartkats-db

Copy link
Copy Markdown
Contributor

Changes

Stacked on #5996. The four standalone templates (default, default-scala,
default-sql, dbt-sql) carried byte-identical AGENTS.md/CLAUDE.md files.
This moves the content into one shared library (templates/common/library)
that newRenderer parses into every template's namespace, and reduces each
template's files to one-line {{template}} stubs.

  • target branch must be set to main before merging

Tests

Template and pipelines acceptance goldens are unchanged; task test-update-templates passes with no diff.

The four standalone templates (default, default-scala, default-sql,
dbt-sql) carried byte-identical AGENTS.md/CLAUDE.md files. Move the
content into a single shared library (templates/common/library) that
newRenderer parses into every template's namespace, and reduce each
template's files to one-line {{template}} stubs. Rendered output is
unchanged.

Co-authored-by: Isaac
@github-actions

Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @pietern -- recent work in libs/template/

Eligible reviewers: @andrewnester, @anton-107, @denik, @janniklasrose, @shreyas-goenka

Suggestions based on git history. See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: bc768fc

Run: 29863490838

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws-cli-is linux 4 4 314 1044 4:00
💚​ aws-cli-is windows 4 4 316 1042 3:43
💚​ azure-cli-is linux 4 4 314 1043 4:02
💚​ azure-cli-is windows 4 4 316 1041 3:19
🟨​ gcp-cli-is linux 3 1 4 313 1045 7:51
🟨​ gcp-cli-is windows 3 1 4 315 1043 7:27
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Name aws-cli-is linux aws-cli-is windows azure-cli-is linux azure-cli-is windows gcp-cli-is linux gcp-cli-is windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🟨​K 🟨​K
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 🟨​K 🟨​K
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 🟨​K 🟨​K

Comment thread libs/template/renderer.go
Comment on lines +78 to +79
// Parse the shared library before the template's own, so a same-named
// definition in the template's library takes precedence.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Parse the shared library before the template's own, so a same-named definition in the template's library takes precedence.

would be good to assert this via at least a unit test

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.

3 participants