cncf / cncf/techdocs

[AIAA] Build step 4: cloud agent environment setup

Chiusa Adatta ai principianti
#372 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
CI/infra
Lingua principale
TypeScript
Stelle
56
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Build step 4 of the AI-assisted assessment system: the agent's
environment setup.

Deliverable: `.github/workflows/copilot-setup-steps.yml`. It prepares
the cloud agent's ephemeral environment before the model starts: Node
from `.nvmrc` with npm cache and `npm ci`, through the repository's
existing `npm-ci-via-cached-nvmrc` composite action. Minimal on
purpose: the deterministic data-collection scripts join these setup
steps in a later step, once they exist.

The setup steps run outside the agent's firewall, so the reviewed
workflow file is the control over what setup fetches. This change
introduces no secrets and requests read-only contents permission.

The workflow triggers on changes to itself, so the PR that adds it
shows a green run before merge. It only takes effect for agent
sessions once merged to the default branch.

Done when an agent session's logs show the prepared environment.

- [ ] Tracking issue opened (this issue)
- [ ] Draft verified locally (assertion script green, `npm run check`
passes)
- [ ] PR opened; setup workflow runs green on the PR itself
- [ ] Merged
- [ ] Agent session logs show the prepared environment (probe #366 or
first delegated session)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con .github/workflows/copilot-setup-steps.yml, .nvmrc e l’azione composita npm-ci-via-cached-nvmrc esistente per comprendere la configurazione prevista. Esegui localmente lo script di asserzione e npm run check, quindi verifica che il workflow venga eseguito correttamente sul relativo PR e che i log della sessione dell’agente mostrino l’ambiente preparato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github-actions, nodejs
Ambito
ci-cd
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
84/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.