Conversation
…tarted for a build operation.
The package-grokker and check jobs are not needed, if no packages are built. Both basically test different aspects of the built packages, but without any packages there is no need to let those jobs run. |
|
is it possible to put this script in separate file? it seems to be very large for embedding into workflow file |
OK. I'll add an error message in the "annotations" area and terminate the pipeline by not generating further jobs at all. Do you like it as: error, warning or info if the result is empty? Should further checks be integrated like:
There are two options:
I wrote it in the YAML file (despite bad debugging and syntax checking features from editors). because it's a unit and if extracted to a separate YAML file, it can be reused cross-repository. Separate Python files can't be reused (as in GitHub reusable workflows). If modified to a reusable workflow, it would look like this file: IntermediateCleanUp:
uses: pyTooling/Actions/.github/workflows/CleanupArtifacts.yml@r7
needs:
- UnitTestingParams
with:
json: ${{ needs.UnitTestingParams.outputs.artifact_names }}
artifact-json-ids: >-
codecoverage_sqlite:-*
unittesting_xml:-* |
|
not sure we want have reusable thing, in our case it seems to be very local |
045c40e to
faf3c5e
Compare
…le further jobs in matrix if list is empty.
faf3c5e to
dc39675
Compare
|
for me, probably throwing an error in case of no jobs is not a good idea. job should fail when it fails to get exact result can't review the script itself so leaving it to others |
Can you please explain? The error message contains the detailed error description. You can click the error and jump to the job and step causing the error. There are 3 levels of errors:
In my opinion that a pipeline must fail if there was an error. If there are other cases for the repository, were changes are pushed but no packages are modified, it can be added and handled. |




Add a prepare job to detect which MSYS2 environment is needed to be started for a build operation.
Fixes #28338