Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOPS-2746 Add sonar, dojo #796

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6b605c6
Set dojo,sonar params
C4tWithShell Sep 18, 2023
67b7b3a
Test
C4tWithShell Sep 18, 2023
ecb3ba6
Update clippy cmd
C4tWithShell Sep 22, 2023
d37cadf
Update clippy cmd
C4tWithShell Sep 22, 2023
691bd97
Merge pull request #741 from sora-xor/develop-to-master
vovac12 Sep 26, 2023
2aaee78
Add deps
C4tWithShell Sep 27, 2023
0cdbc95
Merge branch 'develop' of github.com:sora-xor/sora2-network into prep…
vovac12 Oct 5, 2023
9fbfada
Prepare release 3.0.1
vovac12 Oct 5, 2023
1200fe7
Merge pull request #766 from sora-xor/prepare-release-3.0.1
vovac12 Oct 6, 2023
02f22af
Merge branch 'develop' of github.com:sora-xor/sora2-network into prep…
vovac12 Oct 12, 2023
77a0583
Increase versions
vovac12 Oct 12, 2023
5140ff0
Merge branches 'prepare-release-3.1.0' and 'develop' of github.com:so…
vovac12 Oct 12, 2023
3a5bcd9
Merge pull request #782 from sora-xor/prepare-release-3.1.0
vovac12 Oct 12, 2023
11b6793
Change to lcov
C4tWithShell Oct 13, 2023
242c531
Merge branch 'develop' of github.com:sora-xor/sora2-network into prep…
vovac12 Nov 8, 2023
5b795dc
Update versions
vovac12 Nov 8, 2023
80bdbbf
Merge pull request #819 from sora-xor/prepare-release-3.1.1
vovac12 Nov 8, 2023
64aceed
Remove XST Limit (#824)
vovac12 Nov 13, 2023
d1ef2b3
Merge branch 'develop' of github.com:sora-xor/sora2-network into deve…
wer1st Nov 15, 2023
52362e3
Merge pull request #828 from sora-xor/develop-to-master
wer1st Nov 15, 2023
46d41a4
merge develop into master
wer1st Nov 20, 2023
0367687
Merge pull request #833 from sora-xor/develop-to-master
wer1st Nov 20, 2023
22233e1
Merge branch 'master' into feature/DOPS-2746/sonar_dojo
C4tWithShell Nov 22, 2023
fd7174a
Change clippy
C4tWithShell Nov 22, 2023
6b364bd
Update Jenkinsfile
C4tWithShell Nov 22, 2023
00f51c3
Increase versions
vovac12 Dec 4, 2023
707e09d
Merge branch 'develop' of github.com:sora-xor/sora2-network into rele…
vovac12 Dec 4, 2023
f164934
Merge pull request #843 from sora-xor/release-3.1.2
vovac12 Dec 4, 2023
5dc726e
Revert to test new version of plugin
C4tWithShell Dec 18, 2023
eee0a91
merge develop
wer1st Dec 21, 2023
cf0988e
Release 3.2.0 #856 from sora-xor/release-3.2.0
wer1st Dec 21, 2023
715c3ee
Update dojoProductType
marat-biriushev Jan 18, 2024
ffb392e
Revert dojoProductType
marat-biriushev Jan 24, 2024
7233f68
Merge branch 'master' into feature/DOPS-2746/sonar_dojo
C4tWithShell Jan 27, 2024
1202294
Revert Jenkins lib
C4tWithShell Jan 27, 2024
9724488
Revert to lcov
C4tWithShell Feb 7, 2024
8e0aed7
Merge branch 'develop' into feature/DOPS-2746/sonar_dojo
C4tWithShell Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('jenkins-library') _
@Library('jenkins-library@feature/DOPS-2746/rust_sonar_dojo_slither') _
C4tWithShell marked this conversation as resolved.
Show resolved Hide resolved

def pipeline = new org.rust.AppPipeline(steps: this,
initSubmodules: true,
Expand All @@ -11,6 +11,9 @@ def pipeline = new org.rust.AppPipeline(steps: this,
cargoClippyCmds: ['housekeeping/clippy.sh'],
buildTestCmds: ['housekeeping/build.sh'],
buildArtifacts: 'framenode_runtime.compact.compressed.wasm, subwasm_report.json, pallet_list.txt',
pushToPublicRegistry: true
pushToPublicRegistry: true,
sonarProjectKey: 'sora:sora2-network',
sonarProjectName: 'sora2-network',
dojoProductType: 'sora'
)
pipeline.runPipeline()
3 changes: 2 additions & 1 deletion ethereum-bridge-contracts/slither.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"detectors_to_exclude": "too-many-digits, solc-version, reentrancy-events",
"filter_paths": "@openzeppelin"
"filter_paths": "@openzeppelin",
"json": "./slitherReport.json"
}
2 changes: 1 addition & 1 deletion housekeeping/clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if [ "$pr" = true ] && [ "$prBranch" != "master" ]; then
SKIP_WASM_BUILD=1 cargo clippy --features private-net,ready-to-test,wip,runtime-benchmarks
else
printf "👷‍♂️ starting a regular clippy \n"
cargo clippy -- -D warnings || exit 0
cargo clippy --message-format=json -- -D warnings > clippy_report.json || exit 0
fi
4 changes: 2 additions & 2 deletions housekeeping/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export SKIP_WASM_BUILD=1
export LLVM_PROFILE_FILE="sora2-%p-%m.profraw"

cargo test --features private-net

grcov . --binary-path ./target/debug -s . -t cobertura --branch -o ./cobertura_report --ignore-not-existing --ignore "/opt/cargo/**" "target/debug" "node/src"
rustup component add llvm-tools-preview
grcov . --binary-path ./target/debug -s . -t lcov --branch -o ./lcov_report --ignore-not-existing --ignore "/opt/cargo/**" "target/debug" "node/src"
find . -type f -name '*.profraw' -delete