Setup repo ready for use #1

Closed
opened 2021-08-02 08:01:47 +00:00 by jon_nfc · 82 comments
jon_nfc commented 2021-08-02 08:01:47 +00:00 (Migrated from gitlab.com)

Migrate CI folder contents to this repo.

The intent of this repo is that it will be all of the CI jobs for projects.

Folder structure

All a CI Job per sub folder from the root of the repo.

{Job name}
    python-module (directory)
    scripts (directory)
    README.md
    CHANGELOG.md
    .gitlab-ci.yml
    

workflow / CI usage

  1. (Destination repo) create sub-folder called CI.
  2. (Destination repo) Run git clone {this repo} . from the CI folder. Can be a clone or sub module.
  3. (Destination repo) in the main .gitlab-ci.yaml include this repos job .gitlab-ci.yml

Changelog per folder

Command to output all commits on a path is git log --follow -- CI and can be formated as follows:

  • git log --pretty="format:%H - %s " --follow -- CI outputs {commit_hash} - {commit subject}

Tasks

  • set-up this repo open-source and sync with github project NoFussComputing/gitlab-ci

  • create a template job folder or document how to setup a job.

  • if child-repo setup CI as git-submodule can there be fail-over if host fails? If so document.

Feature To Do

  • ensure linting is done on the yaml files

    • is there a gitlab-ci linter?
  • linting Python files

  • do shell files need linting?

  • changelog per ci job folder commits per path could be used to format log, with dates and save as changelog.

  • merge request template

  • issue template

Migrate [CI](https://gitlab.com/nofusscomputing/infrastructure/ansible-roles) folder contents to this repo. The intent of this repo is that it will be all of the CI jobs for projects. ## Folder structure All a CI Job per sub folder from the root of the repo. ``` {Job name} python-module (directory) scripts (directory) README.md CHANGELOG.md .gitlab-ci.yml ``` ## workflow / CI usage 1. (Destination repo) create sub-folder called CI. 1. (Destination repo) Run `git clone {this repo} .` from the CI folder. Can be a clone or [sub module](https://stackoverflow.com/a/15782629). 1. (Destination repo) in the main `.gitlab-ci.yaml` include this repos job `.gitlab-ci.yml` ### Changelog per folder Command to output all commits on a path is `git log --follow -- CI` and can be formated as follows: - `git log --pretty="format:%H - %s " --follow -- CI` outputs `{commit_hash} - {commit subject}` ## links - [using git sub-modules with CI](https://docs.gitlab.com/ee/ci/git_submodules.html#use-git-submodules-in-cicd-jobs) contradiction in [sub- module path](https://docs.gitlab.com/ee/ci/runners/configure_runners.html#git-submodule-strategy) - [git log format cheatsheet](https://devhints.io/git-log-format) ## Tasks - [x] set-up this repo open-source and sync with github project `NoFussComputing/gitlab-ci` - [x] create a template job folder or document how to setup a job. - [ ] if child-repo setup CI as git-submodule can there be fail-over if host fails? If so document. ### Feature To Do - [x] ensure linting is done on the yaml files - [x] is there a gitlab-ci linter? - [x] linting Python files - [ ] do shell files need linting? - [x] changelog per ci job folder *[commits per path](https://stackoverflow.com/questions/3701404/how-can-i-list-all-commits-that-changed-a-specific-file#8808453)* could be used to format log, with dates and save as changelog. - [x] merge request template - [x] issue template
jon_nfc commented 2021-08-02 08:01:47 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2021-08-02 08:04:06 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:06:52 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:13:20 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:14:43 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:15:06 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:15:45 +00:00 (Migrated from gitlab.com)

added 20m of time spent

added 20m of time spent
jon_nfc commented 2021-08-02 08:36:13 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 08:45:38 +00:00 (Migrated from gitlab.com)

added 30m of time spent

added 30m of time spent
jon_nfc commented 2021-08-02 09:53:29 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 10:00:14 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 10:17:16 +00:00 (Migrated from gitlab.com)

added 2h of time spent

added 2h of time spent
jon_nfc commented 2021-08-02 12:52:12 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-02 12:54:26 +00:00 (Migrated from gitlab.com)

added 2h 30m of time spent

added 2h 30m of time spent
jon_nfc commented 2021-08-02 13:03:07 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-03 00:03:45 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-03 01:57:04 +00:00 (Migrated from gitlab.com)

add sub-module

git submodule add -b development https://gitlab.com/nofusscomputing/projects/gitlab-ci.git gitlab-ci
git submodule update --remote
# add sub-module ``` bash git submodule add -b development https://gitlab.com/nofusscomputing/projects/gitlab-ci.git gitlab-ci git submodule update --remote ```
jon_nfc commented 2021-08-03 03:14:21 +00:00 (Migrated from gitlab.com)

mentioned in commit bd08adf93f

mentioned in commit bd08adf93fd8f1bb05fc5899d242b897c394681e
jon_nfc commented 2021-08-03 03:14:22 +00:00 (Migrated from gitlab.com)

mentioned in commit 45bfc4a5d7c133108bd2e609891be31699852ab8

mentioned in commit 45bfc4a5d7c133108bd2e609891be31699852ab8
jon_nfc commented 2021-08-03 03:18:10 +00:00 (Migrated from gitlab.com)

mentioned in commit 018017666a6a6ed9c0f2be855e1d66682b3a7d07

mentioned in commit 018017666a6a6ed9c0f2be855e1d66682b3a7d07
jon_nfc commented 2021-08-03 03:21:25 +00:00 (Migrated from gitlab.com)

mentioned in commit c8b43f43639360ada24cd96eb9e1b23befe3690b

mentioned in commit c8b43f43639360ada24cd96eb9e1b23befe3690b
jon_nfc commented 2021-08-03 03:27:30 +00:00 (Migrated from gitlab.com)

mentioned in commit d93919642979467ba9130ba930debc6ae6ed5582

mentioned in commit d93919642979467ba9130ba930debc6ae6ed5582
jon_nfc commented 2021-08-03 03:31:21 +00:00 (Migrated from gitlab.com)

mentioned in commit 4baf619abedac2b9a3ec8c7a9c5f74a3a608a7ab

mentioned in commit 4baf619abedac2b9a3ec8c7a9c5f74a3a608a7ab
jon_nfc commented 2021-08-03 03:34:24 +00:00 (Migrated from gitlab.com)

mentioned in commit cbaaa3270e545b665441f727c005bdaaea58ca61

mentioned in commit cbaaa3270e545b665441f727c005bdaaea58ca61
jon_nfc commented 2021-08-03 03:36:29 +00:00 (Migrated from gitlab.com)

mentioned in commit c3d26fe71cf65f2c2e3ddd0c07440defbf0f718a

mentioned in commit c3d26fe71cf65f2c2e3ddd0c07440defbf0f718a
jon_nfc commented 2021-08-03 03:54:26 +00:00 (Migrated from gitlab.com)

mentioned in commit 27e0deada409cd8007c28ab4ac5323677523f0fe

mentioned in commit 27e0deada409cd8007c28ab4ac5323677523f0fe
jon_nfc commented 2021-08-03 04:00:13 +00:00 (Migrated from gitlab.com)

mentioned in commit 392a200fd4

mentioned in commit 392a200fd469c4161dbab5f2b59031a7a64f20a2
jon_nfc commented 2021-08-03 04:00:13 +00:00 (Migrated from gitlab.com)

mentioned in commit 82b794bae269f74a226d78d20e94ddaa1b46ca8b

mentioned in commit 82b794bae269f74a226d78d20e94ddaa1b46ca8b
jon_nfc commented 2021-08-03 04:24:08 +00:00 (Migrated from gitlab.com)

mentioned in commit a2174104d1

mentioned in commit a2174104d1eb05d329bacd44700bf81ac709dcac
jon_nfc commented 2021-08-03 05:02:28 +00:00 (Migrated from gitlab.com)

mentioned in commit b593505698

mentioned in commit b593505698b3d3359569f29f97c90e17e211f304
jon_nfc commented 2021-08-03 05:02:28 +00:00 (Migrated from gitlab.com)

mentioned in commit 9b28ae5952

mentioned in commit 9b28ae5952adfb3d61e660814074ad3c7b42ff61
jon_nfc commented 2021-08-03 05:12:07 +00:00 (Migrated from gitlab.com)

mentioned in commit 7ffb20418c

mentioned in commit 7ffb20418cfa8e6fa20cca60e42155171961d1ce
jon_nfc commented 2021-08-03 05:15:03 +00:00 (Migrated from gitlab.com)

mentioned in commit d4605358c2d89297a6b67945aca41e9831d0fa9f

mentioned in commit d4605358c2d89297a6b67945aca41e9831d0fa9f
jon_nfc commented 2021-08-03 05:16:14 +00:00 (Migrated from gitlab.com)

mentioned in commit 247264e36b

mentioned in commit 247264e36bc0b6c86d2f06f8dae09ff7447fc156
jon_nfc commented 2021-08-03 05:42:28 +00:00 (Migrated from gitlab.com)

mentioned in commit 2413daefb1

mentioned in commit 2413daefb1e7e5a9e7a3cbb2d8cff2214f4a98ae
jon_nfc commented 2021-08-03 05:55:07 +00:00 (Migrated from gitlab.com)

mentioned in commit 2a3266fb53

mentioned in commit 2a3266fb537e22dddf47708d0af101945027128f
jon_nfc commented 2021-08-03 06:39:39 +00:00 (Migrated from gitlab.com)

mentioned in commit 1ecd857c0b

mentioned in commit 1ecd857c0bf8ef009ad2482ad1d52604adadc0ed
jon_nfc commented 2021-08-03 06:39:39 +00:00 (Migrated from gitlab.com)

mentioned in commit 6678a3dbab

mentioned in commit 6678a3dbab2763addc185e766cbaffbc074a6e98
jon_nfc commented 2021-08-03 06:39:39 +00:00 (Migrated from gitlab.com)

mentioned in commit 72fabea68f

mentioned in commit 72fabea68fecc46af27bc07d5319886a42bf5f87
jon_nfc commented 2021-08-03 06:47:37 +00:00 (Migrated from gitlab.com)

mentioned in commit 5d5c382f90775d7d83cb432cf099961e0a8b3803

mentioned in commit 5d5c382f90775d7d83cb432cf099961e0a8b3803
jon_nfc commented 2021-08-03 06:58:06 +00:00 (Migrated from gitlab.com)

mentioned in commit 7c0f51b25edcf185296dea3ea352d2da204b8670

mentioned in commit 7c0f51b25edcf185296dea3ea352d2da204b8670
jon_nfc commented 2021-08-03 07:07:38 +00:00 (Migrated from gitlab.com)

mentioned in commit ca2a208cd473d816515b8858234b7f63d05e95dc

mentioned in commit ca2a208cd473d816515b8858234b7f63d05e95dc
jon_nfc commented 2021-08-03 11:39:53 +00:00 (Migrated from gitlab.com)

added 7h of time spent

added 7h of time spent
jon_nfc commented 2021-08-03 11:54:45 +00:00 (Migrated from gitlab.com)

added 30m of time spent

added 30m of time spent
jon_nfc commented 2021-08-03 13:37:44 +00:00 (Migrated from gitlab.com)

added 1h 53m of time spent

added 1h 53m of time spent
jon_nfc commented 2021-08-03 13:38:01 +00:00 (Migrated from gitlab.com)

added 1h 54m of time spent

added 1h 54m of time spent
jon_nfc commented 2021-08-03 13:42:02 +00:00 (Migrated from gitlab.com)

subtracted 1h 54m of time spent

subtracted 1h 54m of time spent
jon_nfc commented 2021-08-04 01:21:31 +00:00 (Migrated from gitlab.com)

mentioned in commit 1446c28ed2

mentioned in commit 1446c28ed2bfe2efec99bc2fc83b111717bcb2af
jon_nfc commented 2021-08-04 01:21:31 +00:00 (Migrated from gitlab.com)

mentioned in commit ed5be7fd3c

mentioned in commit ed5be7fd3c16e86d48e179a2cded53a38f79e1d9
jon_nfc commented 2021-08-04 01:21:31 +00:00 (Migrated from gitlab.com)

mentioned in commit 2035ed27af

mentioned in commit 2035ed27af7fc1f3f5b2c42aa5874219fc5fe323
jon_nfc commented 2021-08-04 01:21:31 +00:00 (Migrated from gitlab.com)

mentioned in commit 7706085b09

mentioned in commit 7706085b09f3cd9b7c09f7f93b182fd425f6525a
jon_nfc commented 2021-08-04 01:21:31 +00:00 (Migrated from gitlab.com)

mentioned in commit c40f7209d20f936c8553cc420c2ce3686a8ddde5

mentioned in commit c40f7209d20f936c8553cc420c2ce3686a8ddde5
jon_nfc commented 2021-08-04 01:27:11 +00:00 (Migrated from gitlab.com)

mentioned in commit 691d7821d247bf184509de8a212ffb4c420813cb

mentioned in commit 691d7821d247bf184509de8a212ffb4c420813cb
jon_nfc commented 2021-08-04 01:32:13 +00:00 (Migrated from gitlab.com)

mentioned in commit 80ca3618ee

mentioned in commit 80ca3618ee56d0f2a2c012416cb6206599a4f3f6
jon_nfc commented 2021-08-04 01:57:30 +00:00 (Migrated from gitlab.com)

mentioned in commit 72e8b6c84d

mentioned in commit 72e8b6c84defdb903c5741e3469651987769713f
jon_nfc commented 2021-08-04 01:57:30 +00:00 (Migrated from gitlab.com)

mentioned in commit 41c6f573eef634e6950d80aa690f956b1736f154

mentioned in commit 41c6f573eef634e6950d80aa690f956b1736f154
jon_nfc commented 2021-08-04 02:22:45 +00:00 (Migrated from gitlab.com)

mentioned in commit eebe8e30dc

mentioned in commit eebe8e30dcb11cd239f35fcb98216b2ae4d20ece
jon_nfc commented 2021-08-04 02:22:45 +00:00 (Migrated from gitlab.com)

mentioned in commit 287b4c954d

mentioned in commit 287b4c954dddfaaf0a66af387676ea438cc80e61
jon_nfc commented 2021-08-04 02:33:01 +00:00 (Migrated from gitlab.com)

mentioned in commit 86846a25bba6574e680ad6f01b44e5501205a8c2

mentioned in commit 86846a25bba6574e680ad6f01b44e5501205a8c2
jon_nfc commented 2021-08-04 02:57:57 +00:00 (Migrated from gitlab.com)

mentioned in commit cc3fabdaa2

mentioned in commit cc3fabdaa28f97c3e1600e4a0d95a05bb547e772
jon_nfc commented 2021-08-04 03:12:28 +00:00 (Migrated from gitlab.com)

mentioned in commit 3e8c3ce7cd

mentioned in commit 3e8c3ce7cd64a6e9110818d32c15c3602fefb76c
jon_nfc commented 2021-08-04 03:21:40 +00:00 (Migrated from gitlab.com)

mentioned in commit cb78ab8218

mentioned in commit cb78ab82182a9edcd568a8b4c315490041539149
jon_nfc commented 2021-08-04 04:48:15 +00:00 (Migrated from gitlab.com)

marked the checklist item changelog per ci job folder commits per path could be used to format log, with dates and save as changelog. as completed

marked the checklist item **changelog per ci job folder *[commits per path](https://stackoverflow.com/questions/3701404/how-can-i-list-all-commits-that-changed-a-specific-file#8808453)* could be used to format log, with dates and save as changelog.** as completed
jon_nfc commented 2021-08-04 06:17:46 +00:00 (Migrated from gitlab.com)

mentioned in merge request !2

mentioned in merge request !2
jon_nfc commented 2021-08-04 07:36:40 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2021-08-04 07:36:54 +00:00 (Migrated from gitlab.com)

marked the checklist item set-up this repo open-source and sync with github project NoFussComputing/gitlab-ci as completed

marked the checklist item **set-up this repo open-source and sync with github project `NoFussComputing/gitlab-ci`** as completed
jon_nfc commented 2021-08-07 07:48:43 +00:00 (Migrated from gitlab.com)

mentioned in merge request !3

mentioned in merge request !3
jon_nfc commented 2021-08-11 02:17:20 +00:00 (Migrated from gitlab.com)

mentioned in merge request !5

mentioned in merge request !5
jon_nfc commented 2021-08-11 03:13:42 +00:00 (Migrated from gitlab.com)

marked the checklist item create a template job folder or document how to setup a job. as completed

marked the checklist item **create a template job folder or document how to setup a job.** as completed
jon_nfc commented 2021-08-11 03:16:03 +00:00 (Migrated from gitlab.com)

marked the checklist item merge request template as completed

marked the checklist item **merge request template** as completed
jon_nfc commented 2021-08-11 03:16:06 +00:00 (Migrated from gitlab.com)

marked the checklist item issue template as completed

marked the checklist item **issue template** as completed
jon_nfc commented 2021-08-11 04:20:35 +00:00 (Migrated from gitlab.com)

marked the checklist item is there a gitlab-ci linter? as completed

marked the checklist item **is there a gitlab-ci linter?** as completed
jon_nfc commented 2021-08-11 06:29:57 +00:00 (Migrated from gitlab.com)

marked the checklist item linting Python files as completed

marked the checklist item **linting Python files** as completed
jon_nfc commented 2021-08-11 06:30:01 +00:00 (Migrated from gitlab.com)

marked the checklist item ensure linting is done on the yaml files as completed

marked the checklist item **ensure linting is done on the yaml files** as completed
jon_nfc commented 2021-08-11 06:30:34 +00:00 (Migrated from gitlab.com)

added 6h of time spent

added 6h of time spent
jon_nfc commented 2021-08-12 02:06:20 +00:00 (Migrated from gitlab.com)

mentioned in merge request !7

mentioned in merge request !7
jon_nfc commented 2021-08-12 03:31:08 +00:00 (Migrated from gitlab.com)

mentioned in commit 9f7a24c1eb

mentioned in commit 9f7a24c1ebc0bdb5a153977dcb1c53d7ec2fb140
jon_nfc commented 2021-08-12 03:31:08 +00:00 (Migrated from gitlab.com)

mentioned in commit 63af1efb4f

mentioned in commit 63af1efb4fd92a9f8755f766728a18d8f390b805
jon_nfc commented 2021-08-12 03:31:08 +00:00 (Migrated from gitlab.com)

mentioned in commit da8eb5c338

mentioned in commit da8eb5c3381379f6e405c3ebe14d9a883c52f41a
jon_nfc commented 2021-08-12 03:31:09 +00:00 (Migrated from gitlab.com)

mentioned in commit ace7a03456

mentioned in commit ace7a03456861d59e2f904405f45409c53e831ab
jon_nfc commented 2021-08-12 03:41:46 +00:00 (Migrated from gitlab.com)

added 15m of time spent

added 15m of time spent
jon_nfc commented 2021-08-12 03:57:25 +00:00 (Migrated from gitlab.com)

marked this issue as related to #6

marked this issue as related to #6
jon_nfc (Migrated from gitlab.com) closed this issue 2021-08-12 04:02:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infrastructure/gitlab-ci#1
No description provided.