Skip to content

Commit 2c5952c

Browse files
authored
chore: rename light-utils -> light-compressed-account, move account checks to light-account-checks (#1577)
* chore: rename light-utils -> light-compressed-account, move account checks to light-account-checks * fix: rust ci and program test imports * fix: example tests * Update program-libs/account-checks/src/discriminator.rs
1 parent e4244dc commit 2c5952c

File tree

197 files changed

+1221
-1317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+1221
-1317
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
aligned-sized
4545
light-bloom-filter
4646
light-hasher
47-
light-utils
47+
light-compressed-account
48+
light-account-checks
4849
light-verifier
4950
light-merkle-tree-metadata
5051
light-zero-copy
@@ -58,13 +59,13 @@ jobs:
5859
light-program-test
5960
light-client
6061
light-batched-merkle-tree
61-
62+
6263
fail-fast: false
6364
name: Test ${{ matrix.group.name }}
64-
65+
6566
steps:
6667
- uses: actions/checkout@v4
67-
68+
6869
- name: Setup and build
6970
uses: ./.github/actions/setup-and-build
7071

@@ -82,28 +83,28 @@ jobs:
8283
echo "Packages: ${{ matrix.group.packages }}"
8384
echo "Rust version: $(rustc --version)"
8485
} >> "$GITHUB_STEP_SUMMARY"
85-
86+
8687
# Function to format time duration
8788
format_duration() {
8889
local duration="$1"
8990
local minutes=$((duration / 60))
9091
local seconds=$((duration % 60))
9192
echo "${minutes}m ${seconds}s"
9293
}
93-
94+
9495
# Record group start time
9596
group_start=$(date +%s)
96-
97+
9798
# Convert space-separated packages into array
9899
readarray -t packages <<< "$(echo "${{ matrix.group.packages }}" | tr ' ' '\n')"
99-
100+
100101
# Test each package and measure time
101102
for pkg in "${packages[@]}"; do
102103
if [[ -n "$pkg" ]]; then # Skip empty lines
103104
echo "::group::Testing ${pkg}"
104105
start=$(date +%s)
105-
echo "${name}"
106-
echo "${{ matrix.group.name }}"
106+
echo "${name}"
107+
echo "${{ matrix.group.name }}"
107108
108109
109110
if [ "${pkg}" == "light-batched-merkle-tree" ]; then
@@ -117,27 +118,27 @@ jobs:
117118
# execute all tests except test_simulate_transactions and test_e2e
118119
cargo test -p "${pkg}" -- --test test_simulate_transactions || exit 1
119120
fi
120-
else
121+
else
121122
cargo test -p "${pkg}" || exit 1
122123
fi
123-
124+
124125
end=$(date +%s)
125126
duration=$((end - start))
126127
formatted_time=$(format_duration "$duration")
127128
echo "Package ${pkg} completed in ${formatted_time}"
128129
echo "::endgroup::"
129130
fi
130131
done
131-
132+
132133
# Record and print group total time
133134
group_end=$(date +%s)
134135
group_duration=$((group_end - group_start))
135136
formatted_group_time=$(format_duration "$group_duration")
136-
137+
137138
# Create timing report with simplified output
138139
echo "timing=${{ matrix.group.name }}:${formatted_group_time}" >> "$GITHUB_OUTPUT"
139140
echo "Group ${{ matrix.group.name }} total time: ${formatted_group_time}" >> "$GITHUB_STEP_SUMMARY"
140-
141+
141142
collect-times:
142143
needs: test
143144
runs-on: ubuntu-latest
@@ -154,4 +155,4 @@ jobs:
154155
time="${timing#*:}"
155156
echo "| $group | $time |"
156157
done
157-
} >> "$GITHUB_STEP_SUMMARY"
158+
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)