Skip to content

Commit

Permalink
Patch coverity scan (#1090)
Browse files Browse the repository at this point in the history
* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

update build command to avert empty cwd in build metrics

* Update coverity_scan.yml

* Update coverity_scan.yml

adding verbose to debug curl

* Update coverity_scan.yml

debug print trace to examine build metrics xml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update coverity_scan.yml

* Update NeoXArgs docs automatically

* Update NeoXArgs docs automatically

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Quentin Anthony <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2023
1 parent 3be59a4 commit a2b2020
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/coverity_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,38 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
path: gpt-neox

- name: Install utils
run: |
apt update -y && apt upgrade -y
apt install curl jq wget -y
sudo apt update -y && sudo apt upgrade -y
sudo apt install curl jq wget -y
- name: Coverity Download
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_TOKEN&project=EleutherAI%2Fgpt-neox" -O coverity_tool.tgz
$GITHUB_WORKSPACE/bin/cov-configure --python
$GITHUB_WORKSPACE/bin/cov-configure --gcc
wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_TOKEN&project=$COVERITY_PROJECT" -O coverity_tool.tgz --no-verbose
mkdir $GITHUB_WORKSPACE/coverity && tar xvf coverity_tool.tgz -C $GITHUB_WORKSPACE/coverity --strip-components=1
$GITHUB_WORKSPACE/coverity/bin/cov-configure --python
$GITHUB_WORKSPACE/coverity/bin/cov-configure --gcc
- name: Coverity Scan
- name: Coverity Scan and Upload
run: |
set -x
$GITHUB_WORKSPACE/bin/cov-build --dir cov-int --no-command --fs-capture-search $GITHUB_WORKSPACE
- name: Coverity Upload
run: |
pushd $GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE/gpt-neox
$GITHUB_WORKSPACE/coverity/bin/cov-build --dir $GITHUB_WORKSPACE/cov-int --no-command --fs-capture-search ./
popd
tar caf build-results.bz2 cov-int
curl --form token=$COV_PASSPHRASE \
curl --form token=$COVERITY_TOKEN \
--form email=$COV_USER \
--form file=@GITHUB_WORKSPACE/build-results.bz2 \
--form version="Version" \
--form description="Build" \
https://scan.coverity.com/builds?project=EleutherAI%2Fgpt-neox
--form [email protected] \
--form version="${{ inputs.build_version }}" \
--form description="${{ inputs.build_description }}" \
https://scan.coverity.com/builds?project=$COVERITY_PROJECT
- name: Upload Scan Build as Artifact
uses: actions/upload-artifact@v3
with:
name: coverity-build-${{ github.sha }}
path: build-results.bz2
8 changes: 4 additions & 4 deletions configs/neox_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Logging Arguments

- **git_hash**: str

Default = 2da1083
Default = efaee8d

current git hash of repository

Expand Down Expand Up @@ -800,23 +800,23 @@ Misc. Arguments



- **do_train**: int
- **do_train**: bool

Default = None

Set during training



- **do_valid**: int
- **do_valid**: bool

Default = None

Set during training



- **do_test**: int
- **do_test**: bool

Default = None

Expand Down

0 comments on commit a2b2020

Please sign in to comment.