Repository navigation
feat(dir): add extractor to import-records workflow - #2015
Conversation
3e7ed9e to
20e011b
Compare
20e011b to
96eb484
Compare
|
The caching is worth it for the model weights (~89 MB, never change), but the static key is the problem when a new OASF version ships.
Secondary concern: Suggested fix: use a run-unique primary key with a prefix-based - name: Cache OASF extractor assets
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25
with:
path: ~/.agntcy/oasf-sdk/extractor
key: oasf-extractor-${{ runner.os }}-${{ github.run_id }}
restore-keys: |
oasf-extractor-${{ runner.os }}-Cache miss on the exact key (always), but |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
Adds local OASF extractor enrichment as the default import-records workflow backend.
Changes:
- Adds selectable extractor/LLM enrichment.
- Provisions and caches extractor assets for both import jobs.
- Reports enrichment mode and tests missing extractor assets.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/import-records.yaml |
Configures extractor-backed imports. |
.github/workflows/scripts/import-records-summary.sh |
Reports the selected enrichment backend. |
cli/cmd/import/config_test.go |
Tests missing extractor asset validation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - name: Cache OASF extractor assets | ||
| if: ${{ env.ENRICHMENT == 'extractor' }} | ||
| uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 | ||
| with: | ||
| path: ~/.agntcy/oasf-sdk/extractor | ||
| key: oasf-extractor-${{ runner.os }}-v1 | ||
|
|
||
| - name: Provision OASF extractor | ||
| if: ${{ env.ENRICHMENT == 'extractor' }} | ||
| run: | | ||
| set -euo pipefail | ||
| EXTRACTOR_ASSET_DIR="${HOME}/.agntcy/oasf-sdk/extractor" | ||
| echo "Provisioning OASF extractor assets to ${EXTRACTOR_ASSET_DIR}" | ||
| dirctl init --yes \ | ||
| --oasf-url https://schema.oasf.outshift.com \ | ||
| --asset-dir "${EXTRACTOR_ASSET_DIR}" | ||
|
|
There was a problem hiding this comment.
CAn we make an GH action for this and re-use?
|
Thanks @akijakya ! I think, let's just not worry about caching then. We don't run this job often anyway. |
9f7c197 to
637efcd
Compare
|
The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).
|
637efcd to
dc92d01
Compare
Signed-off-by: Bendegúz Csirmaz <[email protected]>
dc92d01 to
deb3767
Compare
NB: this will make extractor the default in the import workflow