Skip to content

Commit

Permalink
CI test copy_from_upstream (#1405)
Browse files Browse the repository at this point in the history
* CI test copy_from_upstream

* improve pip install error test

* work around CBOM issue

* rebase and remove CBOM workaround
  • Loading branch information
baentsch authored Mar 7, 2023
1 parent 4c7ced2 commit 50f7f1b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@ jobs:
- name: Validate CBOM
run: scripts/validate_cbom.sh

upstreamcheck:
name: Check upstream code is properly integrated
container: openquantumsafe/ci-ubuntu-focal-x86_64:latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Verify copy_from_upstream state
run: |
git config --global user.name "ciuser" && \
git config --global user.email "ci@openquantumsafe.org" && \
export LIBOQS_DIR=`pwd` && \
cd scripts/copy_from_upstream && \
! pip3 install -r requirements.txt 2>&1 | grep ERROR && \
python3 copy_from_upstream.py copy && \
! git status | grep modified
buildcheck:
name: Check that code passes a basic build before starting heavier tests
container: openquantumsafe/ci-ubuntu-focal-x86_64:latest
Expand Down Expand Up @@ -45,7 +62,7 @@ jobs:
working-directory: build

linux_intel:
needs: [stylecheck, buildcheck]
needs: [stylecheck, upstreamcheck, buildcheck]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
14 changes: 7 additions & 7 deletions docs/cbom.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"bomFormat": "CBOM",
"specVersion": "1.4-cbom-1.0",
"serialNumber": "urn:uuid:4a640cdd-5ee1-4816-b261-d0fa309e1f46",
"serialNumber": "urn:uuid:ac72fb7e-1016-4cd9-925b-72df28c22f74",
"version": 1,
"metadata": {
"timestamp": "2023-02-23T15:52:26.923884",
"timestamp": "2023-03-06T16:07:06.998705",
"component": {
"type": "library",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@49164467b6456a217b09c5d1a6c830abb64fc1a6",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@f49e57f71cf550b7ba7ed3ec94cb4f99e41a6d8c",
"name": "liboqs",
"version": "49164467b6456a217b09c5d1a6c830abb64fc1a6"
"version": "f49e57f71cf550b7ba7ed3ec94cb4f99e41a6d8c"
}
},
"components": [
{
"type": "library",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@49164467b6456a217b09c5d1a6c830abb64fc1a6",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@f49e57f71cf550b7ba7ed3ec94cb4f99e41a6d8c",
"name": "liboqs",
"version": "49164467b6456a217b09c5d1a6c830abb64fc1a6"
"version": "f49e57f71cf550b7ba7ed3ec94cb4f99e41a6d8c"
},
{
"type": "crypto-asset",
Expand Down Expand Up @@ -3028,7 +3028,7 @@
],
"dependencies": [
{
"ref": "pkg:github/open-quantum-safe/liboqs@49164467b6456a217b09c5d1a6c830abb64fc1a6",
"ref": "pkg:github/open-quantum-safe/liboqs@f49e57f71cf550b7ba7ed3ec94cb4f99e41a6d8c",
"dependsOn": [
"alg:BIKE-L1:x86_64",
"alg:BIKE-L3:x86_64",
Expand Down
4 changes: 2 additions & 2 deletions scripts/copy_from_upstream/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ attrs==20.3.0
GitPython==3.1.30
importlib-metadata==3.7.0
Jinja2==2.11.3
markdown-it-py==0.6.2
markdown-it-py==2.2.0
MarkupSafe==1.1.1
mdit-py-plugins==0.2.5
mdit-py-plugins==0.3.4
PyYAML==5.4.1
tabulate==0.8.10
typing-extensions==3.7.4.3
Expand Down

0 comments on commit 50f7f1b

Please sign in to comment.