dtslint-runner should not compare against master on DT PRs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- shell, typescript
Direzione di ricerca
Individua dtslint-runner e la relativa logica di git diff, quindi confrontala con la gestione di merge-base in scripts/pnpm-install.sh. Verifica come CI identifica le pull request e come i commit di merge espongono HEAD^1. Il lavoro è completato quando le esecuzioni delle PR effettuano il confronto con la merge-base stabile della PR invece che con un origin/master più recente, così che i pacchetti non correlati non vengano segnalati come modificati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
dtslint-runner diffs against master. If someone merges a PR at the exact same time as another PR's CI runs, they'll pull origin/master and may get the wrong thing. For example, in https://github.com/DefinitelyTyped/DefinitelyTyped/actions/runs/7452339628/job/20275379960?pr=68135:
Running: git rev-parse --verify master
Running: git fetch origin master
Running: git branch master FETCH_HEAD
Running: git diff master --name-status
M types/matter-js/index.d.ts
M types/slate-html-serializer/index.d.ts
M types/slate-html-serializer/tsconfig.json
Testing 2 changed packages: Set(2) { 'matter-js', 'slate-html-serializer' }
Testing 0 dependent packages: Set(0) {}
dtslint-runner fetches master, but gets a newer master than the PR, so it believes that the PR modified matter-js, when it was actually another PR merged to master. I partially fixed this for pnpm install in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/scripts/pnpm-install.sh; since PRs are run on merge commits in CI, HEAD^1 points to an already pulled / stable merge base (what the PR thinks master is at the time of the CI run; further runs will get newer merge bases so it's not out of date).
This then causes further failures because pnpm install is installing the "correct" dependency set, which does not include matter-js.
In CI, it's easy to tell that we're in a PR. But, I'm not totally sure of the right mechanism to check in dtslint-runner, but we should definitely do it.
- Lingua principale
- TypeScript
- Stelle
- 423
- Fork
- 237
- Merge medio
- 18h 18m
- PR unite (30g)
- 11
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/DefinitelyTyped-tools
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
microsoft/DefinitelyTyped-tools#1324 · 5 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
microsoft/DefinitelyTyped-tools#1230 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
microsoft/DefinitelyTyped-tools#1229 ·
-
microsoft/DefinitelyTyped-tools#1218 · 1 reazione · 1 assegnatario ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
microsoft/DefinitelyTyped-tools#1211 · 1 commento ·
Tutte le issue di microsoft/DefinitelyTyped-tools
Issue simili
-
comp/dashboard P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
-
code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
langchain-ai/deepagents#6450 ·