Repository navigation
CI: push só na main e nas MOODLE_*_STABLE (#10) - #11
Merged
Merged
Conversation
Numa branch de trabalho (fix-*-405), o job versions caía em
DEFAULT_VERSIONS ("30 38") e testava versões que o plugin não suporta
ali: falso vermelho com pluginrequirementsnotmet. O PR da branch testa
a versão da base. Custo aceito: push em branch sem PR fica sem CI.
Closes #10
Da revisão do #11: tag não dispara mais (só `branches` definido), e o DEFAULT_VERSIONS vale para toda branch que o job versions não conhece, inclusive disparo manual e PR contra branch de trabalho. Uma MOODLE_XX_STABLE nova precisa da sua linha no job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fecha #10.
Problema. O job
versionsescolhe as versões porgithub.base_ref || github.ref_name. Numpushem branch de trabalho (fix-prefix-405), isso vale o nome da branch, que cai emDEFAULT_VERSIONS("30 38"). A branch exige Moodle 4.5 (requires = 2024100700), e o run falha compluginrequirementsnotmet: o run 36620174795 (push, commit 9e7573d) falhou no 3.0 e no 3.8, e o run 36620179518 (pull_request, mesmo commit) testou o 4.5 e passou. Toda branchfix-*-401/fix-*-405repetia esse falso vermelho.Mudança.
pushsó emmaineMOODLE_*_STABLE.pull_request,scheduleeworkflow_dispatchnão mudam (o jobstable-branchesdispara porworkflow_dispatch). O comentário deDEFAULT_VERSIONSpassa a dizer que ele vale para amaine para PRs contra ela.Custo aceito. Push em branch de trabalho sem PR aberto fica sem CI.
Verificação.
actionlint1.7.12 sem achados. O push desta própria branch já tem o filtro: não deve aparecer run depushparafix-ci-push, só o depull_request.Propagação. O
ci.ymlé idêntico nas cinco branches (main,MOODLE_30/38/401/405_STABLE). Depois do merge, a mudança segue pela cascata normal.Depois da revisão
branchesdefinido, o GitHub ignora push de tag. Hoje o repositório não tem tags; antes, uma tag caía emDEFAULT_VERSIONS, o que já era errado.DEFAULT_VERSIONS. Corrigir isso muda a lógica do jobversionse fica fora desta issue.pushe doDEFAULT_VERSIONSpassam a descrever exatamente isso, e umaMOODLE_XX_STABLEnova precisa da sua linha no job.🤖 Generated with Claude Code