[dev] refactor log.py -> logger.sh (#32)

* update.sh: fetch will prune

* log: use hostname directly

* refactor log.py to logger.sh (#31)

* logger.sh: refactor log.py to bash script

* update.sh use beacon; ci test beacon

* install.sh: install dep first

* install.sh: DFS_UPDATED_RET=85

* more beacon; use stderr

* remove py3 dep

* install.sh: remove py3

* install.sh: -s|--secure

* async log; beacon add sys.login

* update use sync beacon

* fix ci minor bug; macos: uuidgen/e2fsprogs

* logger.sh: not need to use uuid5

* bug fix

* dfs err_return

* common.sh: post_log and post_beacon will check #args

* bug fix

* zshrc: fix locale when C.UTF-8 not exists

* WIP: combine install -a and tools/ scripts

* finish combination; get_os_name; macos.sh

* test.ci: now all use -a to install deps

* bug fix

* bug fix; ci: install.sh run with -x

* install.sh: bug fix that re-run install.sh after updated needs orgin args

* format

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
This commit is contained in:
2022-12-03 20:37:20 +08:00
committed by GitHub
parent 56e2b217eb
commit ff8ac21424
12 changed files with 251 additions and 161 deletions

View File

@@ -7,12 +7,6 @@ jobs:
name: test on ubuntu
runs-on: ubuntu-latest
steps:
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git python3 python3-pip zsh curl inetutils-ping
sudo pip3 install requests
- name: checkout repo
uses: actions/checkout@v3
with:
@@ -22,7 +16,8 @@ jobs:
run: |
rev=`git rev-parse HEAD`
pwd
./install.sh -dl
set -x
./install.sh -adl
test `git rev-parse HEAD` = "$rev"
- name: antigen build
@@ -37,6 +32,7 @@ jobs:
source tools/test.zsh
antigen reset
rm -rf $ANTIGEN $HOME/.antigen
./install.sh -dl
- name: antigen build with DFS_NO_WALL
shell: /bin/zsh -ileo PIPE_FAIL {0}
@@ -54,12 +50,6 @@ jobs:
name: test on macos
runs-on: macos-12
steps:
- name: install dependencies
run: |
brew update
brew install git python3 zsh curl
sudo pip3 install requests
- name: checkout repo
uses: actions/checkout@v3
with:
@@ -69,7 +59,8 @@ jobs:
run: |
rev=`git rev-parse HEAD`
pwd
./install.sh -dl
set -x
./install.sh -adl
test `git rev-parse HEAD` = "$rev"
- name: antigen build
@@ -84,6 +75,7 @@ jobs:
source tools/test.zsh
antigen reset
rm -rf $ANTIGEN $HOME/.antigen
./install.sh -dl
- name: antigen build with DFS_NO_WALL
shell: /bin/zsh -ileo PIPE_FAIL {0}
@@ -103,7 +95,7 @@ jobs:
steps:
- name: remove dependencies
run: |
sudo apt-get -y remove curl vim
sudo apt-get -y remove curl vim python3
- name: checkout repo
uses: actions/checkout@v3
@@ -113,6 +105,7 @@ jobs:
- name: install dfs
run: |
rev=`git rev-parse HEAD`
set -x
./install.sh -dal
test `git rev-parse HEAD` = "$rev"