[Git][ghc/ghc][wip/test-primops] 4 commits: lint-ci-config: Generate jobs-metadata.json

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Fri Jul 14 09:46:54 UTC 2023



Matthew Pickering pushed to branch wip/test-primops at Glasgow Haskell Compiler / GHC


Commits:
80466b75 by Matthew Pickering at 2023-07-14T09:50:06+01:00
lint-ci-config: Generate jobs-metadata.json

We also now save the jobs-metadata.json and jobs.yaml file as artifacts
as:

* It might be useful for someone who is modifying CI to copy jobs.yaml
  if they are having trouble regenerating locally.
* jobs-metadata.json is very useful for downstream pipelines to work out
  the right job to download.

Fixes #23654

- - - - -
01f09267 by Matthew Pickering at 2023-07-14T09:53:24+01:00
Generate v in job metadata

- - - - -
cf27af11 by Matthew Pickering at 2023-07-14T10:46:32+01:00
project version always

- - - - -
25cd23f5 by Matthew Pickering at 2023-07-14T10:46:46+01:00
fix

- - - - -


2 changed files:

- .gitlab-ci.yml
- .gitlab/generate-ci/gen_ci.hs


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -278,6 +278,12 @@ lint-ci-config:
     - nix run .gitlab/generate-ci#generate-jobs
     # 1 if .gitlab/generate_jobs changed the output of the generated config
     - nix shell nixpkgs#git -c git diff --exit-code
+    # And run this to generate the .gitlab/jobs-metadata.json
+    - nix run .gitlab/generate-ci#generate-job-metadata
+  artifacts:
+    paths:
+      - .gitlab/jobs-metadata.json
+      - .gitlab/jobs.yaml
   dependencies: []
 
 lint-submods:
@@ -1026,9 +1032,6 @@ project-version:
   artifacts:
     paths:
       - version.sh
-  rules:
-    - if: '$NIGHTLY'
-    - if: '$RELEASE_JOB == "yes"'
 
 .ghcup-metadata:
   stage: deploy


=====================================
.gitlab/generate-ci/gen_ci.hs
=====================================
@@ -853,7 +853,8 @@ data JobGroup a = StandardTriple { v :: NamedJob a
 
 instance ToJSON a => ToJSON (JobGroup a) where
   toJSON jg = object
-    [ "n" A..= n jg
+    [ "v" A..= v jg
+    , "n" A..= n jg
     , "r" A..= r jg
     ]
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/30371d6b34e8b2ab4519b9a5c87405f928dc8ac5...25cd23f57c6b428fca8eabcaded7e2fe3a3dbfd2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/30371d6b34e8b2ab4519b9a5c87405f928dc8ac5...25cd23f57c6b428fca8eabcaded7e2fe3a3dbfd2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230714/9d9130e4/attachment-0001.html>


More information about the ghc-commits mailing list