Stephen Davis

Forum Replies Created

Viewing 2 replies – 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: GitHub and Cloverleaf #86284
    Stephen Davis
    Participant

      Yeah, it does get tricky as this isn’t what you’d call typical software development. My thought was to perhaps set up a CI pipeline in Git so that you had build/test/deploy stages as described on https://docs.gitlab.com/ee/ci/yaml/README.html. I would think that you could set up triggers so that when one modifies something like an Xlate in the DEV environment, it would push to that branch (either manually, or with autocommit from gitwatch as described in my previous post) and be ready in the pipeline.

      Once the pipeline is run, it could pull the dev branch to the test environment (build stage) and execute scripts to validate the file using the command-line tools in cloverleaf such as hcixlttest, hciroutetest, etc. (test stage). Then, depending on how things come out, push to production immediately or at a set date time as you would with nightly builds or scheduled updates. You could even apply the changes with the after_script directive in the .gitlab-ci.yml file to do something like hcicmd -p $PROCESS -c ‘$THREAD pstop/pstartt’ to cycle the processes and threads to make the change active.

      in reply to: GitHub and Cloverleaf #86282
      Stephen Davis
      Participant

        Seemingly several years late to the discussion here but we are running 6.2.2 on RHEL 7.4 and have an on-prem version of gitlab. We are using a script called gitwatch (https://github.com/gitwatch/gitwatch) which uses the git client and inotify-tools to ‘watch’ sever-side folders such as tclprocs, xlate, etc.

        When modifications are done to something in these folders via the Cloverleaf IDE, it does a commit ~2 seconds later and pushes to the appropriate repository. This essentially covers versioning a lot better than the versioning built in to Cloverleaf.

        I am working on setting up pipelines so that we can trigger deployments from DEV -> TEST -> PROD via git as well.

      Viewing 2 replies – 1 through 2 (of 2 total)