[feature] Basic Build runs twice on every push to a branch with an open PR
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 52/100
Direzione di ricerca
The trigger is the on: block in .github/workflows/basic_build.yml; compare it with publish_wheels.yml, which only listens to pull_request, tag pushes and workflow_dispatch. Confirm the duplicate runs on a PR branch, then decide whether push should be restricted to main, since the issue's trade-off needs a maintainer's answer. Done means a PR branch produces one set of runs and a branch without a PR still builds on demand via workflow_dispatch. The concurrency block is a separate change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem / use case
.github/workflows/basic_build.yml triggers on push: with no branch filter, and on pull_request:. For a branch with an open PR in the same repository, each push fires both events on the same commit, so the whole build matrix runs twice. The workflow has no concurrency block either, so older runs of a branch also keep running after a newer push.
Proposed solution
Limit push to main:
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
The trade-off is that a branch without an open PR no longer builds on push. workflow_dispatch is still available for that case. A concurrency group with cancel-in-progress would cover the stale-run part, and could be a separate change.
Additional context
publish_wheels.yml does not have this problem. It only listens to pull_request, tag pushes and workflow_dispatch.
Drafted with Claude's assistance.
- Confirmed the
on:block and the absence of anyconcurrencysetting in.github/workflowson currentupstream/mainby reading the files. - I saw the duplicate runs earlier on a fork PR (two run IDs for the same job and commit); I did not re-check them for this draft.
- Searched
nasa/ceaissues for an existing report and found none.
- Lingua principale
- Fortran
- Stelle
- 233
- Fork
- 48
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 nasa/cea
-
[bug] fb_core_test fails to link with FB_BUILD_TESTING=ON (missing cea_abort_support)Forse già presa @sylvesterkaczmarek l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
[feature] Pin the GFE test dependency to a release tag in CI and develop.shForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
[bug] ADN entry in thermo.inp uses batch mass/enthalpy (630 g, -683.6 kJ) instead of per-mole valuesAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 94/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Issue simili
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
SciML/PETScDiffEq.jl#521 ·
I maintainer di solito rispondono entro 1 giorno
-
area:infra bug security
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ilia-sokolov/OfficeAgent.NET#84 ·
I maintainer di solito rispondono entro 13 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100