Git Product home page Git Product logo

ops's Issues

Accept specific git hash for idempotent updating

Currently pulling latest 10 commits by this way, but when we push multiple times within a very short time, updating by this way causes mismatch.

ops/Taskfile.yml

Lines 21 to 28 in 0923f59

git-pull:
preconditions:
- sh: git diff --exit-code
msg: Working tree is NOT clean
cmds:
- git pull --depth=10
- git gc --aggressive --prune=all
- du -sh .git

To avoid this, we need idempotency by accept specific git hash for task:git-pull inside task:update.

Test setup scripts for every change

Current setup scripts are not tested for running clean from-scratch environments because:

I need tests to ensure that current (latest) setup scripts work successfully on the clean environment.

The way to do this can be:

  • running and setting up a docker container of CentOS 8-stream on CI

Improve portability of paths

Currently every path in all files is specified as an absolute path (starts with /ops/) but this would be a problem where we run scripts in local machine (e.g. macos).

Choices:

  • Make every path as relative
  • Prepend flexible $PREFIX variable for every path
    • easy
    • *a bit of bothering and less readable
    • we can configure the $PREFIX for some environments before run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.