Skip to content

Commit ba484b0

Browse files
committed
fixing CI
1 parent 65a8b88 commit ba484b0

File tree

5 files changed

+26
-69
lines changed

5 files changed

+26
-69
lines changed

forc-plugins/forc-doc/tests/fixtures/sample_workspace/Forc.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dependencies = [
1212

1313
[[package]]
1414
name = "std"
15-
source = "path+from-root-0CDB23161116D3A1"
15+
version = "0.69.0"
16+
source = "registry+std?0.69.0#QmSeLFUtVXk8i13owCv87Kga1MfsYgfn7sdj6WimxLwq2g!"

justfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,30 @@ perf-remove:
153153
echo "Removing canceled."
154154
fi
155155

156+
# path: path to file to extract gas usage
157+
# open: "-o" will open the default browser showing the report
158+
[linux]
156159
[group('benchmark')]
157-
collect-historic-gas-usage path:
160+
collect-historic-gas-usage path open:
158161
#! /bin/bash
159162
mkdir -p target
160163
rm target/a.csv
161164
rm target/a.html
162-
rm target/report.html
163-
echo "test,gas,hash" > target/a.csv
165+
echo "test,gas,commit" > target/a.csv
164166
for HASH in `git log --format='%H' -- {{path}}`; do
165167
TIMESTAMP=$(git show -s --format='%as-%ct-%H' "$HASH")
166168
git --no-pager show "$HASH:{{path}}" | bash -c "scripts/compare-gas-usage/extract-gas-usage.sh $TIMESTAMP" >> target/a.csv
167-
./scripts/csv2html/csv2html.sh target/a.csv >> target/a.html
168169
done
169-
./scripts/csv2html/htmltable2report.sh target/a.html > target/report.html
170+
./scripts/csv2html/csv2html.sh target/a.csv >> target/a.html
171+
if [ -n "{{open}}" ]; then
172+
if which xdg-open &>> /dev/null
173+
then
174+
xdg-open target/a.html
175+
elif which gnome-open &>> /dev/null
176+
then
177+
gnome-open target/a.html
178+
fi
179+
fi
170180

171181
[group('build')]
172182
build-prism:

scripts/bisect-forc/bisect-forc.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ compile_and_cp_to_cache() {
2020
fi
2121
}
2222

23-
23+
run_cargo() {
24+
if [ "$2" = "" ]; then
25+
bash -c "$CACHE/$CACHENAME build --path $PROJ" &>> /dev/null
26+
echo "$?"
27+
else
28+
bash -c "$CACHE/$CACHENAME $2 --path $PROJ" &>> /dev/null
29+
echo "$?"
30+
fi
31+
}
2432

2533
INITIAL_COMMIT="$(git show -s --format='%H' HEAD)"
2634
END_COMMIT=""
@@ -39,15 +47,6 @@ git log -1 --oneline
3947
echo -n "Running: "
4048

4149
CACHENAME="$(git show -s --format='%as-%ct-%H' HEAD)"
42-
run_cargo() {
43-
if [ "$2" = "" ]; then
44-
bash -c "$CACHE/$CACHENAME build --path $PROJ" &>> /dev/null
45-
echo "$?"
46-
else
47-
bash -c "$CACHE/$CACHENAME $2 --path $PROJ" &>> /dev/null
48-
echo "$?"
49-
fi
50-
}
5150
compile_and_cp_to_cache "$CACHENAME"
5251
INITIAL_COMPILATION_STATUS=$(run_cargo "$1" "$2")
5352

scripts/csv2html/htmltable2report.sh

Lines changed: 0 additions & 51 deletions
This file was deleted.

test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/snapshot.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
cmds = [
2-
#"echo This test will first run all test together. In this way we can measure the cost of contract method selection.",
3-
#"echo After that, each test will be run isolated, giving a more precise cost of encoding/decoding boilerplate for each type.",
42
"forc test --path {root} --release --experimental const_generics",
53
{ repeat = "for-each-block", cmds = [
64
"replace-file src/main.sw \"fn cost_of_in\" \"fn isolated_cost_of_in\"",

0 commit comments

Comments
 (0)