Skip to content

Commit 1612950

Browse files
committed
Run spell checks on the repo
Signed-off-by: Tomasz Andrzejak <[email protected]>
1 parent 22b6795 commit 1612950

File tree

32 files changed

+60
-48
lines changed

32 files changed

+60
-48
lines changed

.github/workflows/ValidatePullRequest.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
max_total_time: 300 # 5 minutes in seconds
5151
docs_only: ${{needs.docs-pr.outputs.docs-only}}
5252
secrets: inherit
53+
spelling:
54+
name: spell check with typos
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- name: Spell Check Repo
59+
uses: crate-ci/typos@master
5360

5461
#####
5562
# start build-on-windows

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ run-rust-examples target=default-target: (build-rust target)
154154
cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example metrics --features "function_call_metrics"
155155
{{ set-trace-env-vars }} cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example logging
156156

157-
# The two tracing eamples are flaky on windows so we run them on linux only for now, need to figure out why as they run fine locally on windows
157+
# The two tracing examples are flaky on windows so we run them on linux only for now, need to figure out why as they run fine locally on windows
158158
run-rust-examples-linux target=default-target: (build-rust target) (run-rust-examples target)
159159
{{ set-trace-env-vars }} cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example tracing
160160
{{ set-trace-env-vars }} cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example tracing --features "function_call_metrics"

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ under the standard MIT terms.
197197
All other files which have no copyright comments are original works
198198
produced specifically for use as part of this library, written either
199199
by Rich Felker, the main author of the library, or by one or more
200-
contibutors listed above. Details on authorship of individual files
200+
contributors listed above. Details on authorship of individual files
201201
can be found in the git version control history of the project. The
202202
omission of copyright and license comments in each file is in the
203203
interest of source tree size.

src/hyperlight_common/src/flatbuffer_wrappers/guest_log_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl From<&LogLevel> for FbLogLevel {
8585

8686
impl From<&LogLevel> for Level {
8787
// There is a test (sandbox::outb::tests::test_log_outb_log) which emits trace record as logs
88-
// which causes a panic when this function is instrumeneted as the logger is contained in refcell and
88+
// which causes a panic when this function is instrumented as the logger is contained in refcell and
8989
// instrumentation ends up causing a double mutborrow. So this is not instrumented.
9090
//TODO: instrument this once we fix the test
9191
fn from(val: &LogLevel) -> Level {

src/hyperlight_host/benches/benchmarks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn sandbox_benchmark(c: &mut Criterion) {
106106

107107
// Benchmarks the time to create a new uninintialized sandbox.
108108
// Does **not** include the time to drop the sandbox.
109-
group.bench_function("create_uninitalized_sandbox", |b| {
109+
group.bench_function("create_uninitialized_sandbox", |b| {
110110
b.iter_with_large_drop(create_uninit_sandbox);
111111
});
112112

src/hyperlight_host/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ pub enum HyperlightError {
227227
#[error("Failed To Convert Parameter Value {0:?} to {1:?}")]
228228
ParameterValueConversionFailure(ParameterValue, &'static str),
229229

230-
/// a failure occured processing a PE file
230+
/// a failure occurred processing a PE file
231231
#[error("Failure processing PE File {0:?}")]
232232
PEFileProcessingFailure(#[from] goblin::error::Error),
233233

src/hyperlight_host/src/func/call_ctx.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl MultiUseGuestCallContext {
5656
///
5757
/// Every call to a guest function through this method will be made with the same "context"
5858
/// meaning that the guest state resulting from any previous call will be present/osbservable
59-
/// by the guest funcation called.
59+
/// by the guest function called.
6060
///
6161
/// If you want to reset state, call `finish()` on this `MultiUseGuestCallContext`
6262
/// and get a new one from the resulting `MultiUseSandbox`
@@ -89,9 +89,9 @@ impl MultiUseGuestCallContext {
8989
/// Note that this method is pub(crate) and does not reset the state of the
9090
/// sandbox.
9191
///
92-
/// It is intended to be used when evolving a MutliUseSandbox to a new state
92+
/// It is intended to be used when evolving a MultiUseSandbox to a new state
9393
/// and is not intended to be called publicly. It allows the state of the guest to be altered
94-
/// during the eveolution of one sandbox state to another, enabling the new state created
94+
/// during the evolution of one sandbox state to another, enabling the new state created
9595
/// to be captured and stored in the Sandboxes state stack.
9696
///
9797
pub(crate) fn finish_no_reset(self) -> MultiUseSandbox {

src/hyperlight_host/src/hypervisor/hypervisor_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ fn set_up_hypervisor_partition(
837837
// debug build without in-process feature
838838
log_then_return!("In-process mode requires `inprocess` cargo feature");
839839
} else {
840-
log_then_return!("In-process mode requires `inprocess` cargo feature and is only avaiable on debug-builds");
840+
log_then_return!("In-process mode requires `inprocess` cargo feature and is only available on debug-builds");
841841
}
842842
}
843843
} else {

src/hyperlight_host/src/hypervisor/kvm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl KVMDriver {
103103
})?;
104104

105105
let mut vcpu_fd = vm_fd.create_vcpu(0)?;
106-
Self::setup_inital_sregs(&mut vcpu_fd, pml4_addr)?;
106+
Self::setup_initial_sregs(&mut vcpu_fd, pml4_addr)?;
107107

108108
let rsp_gp = GuestPtr::try_from(RawPtr::from(rsp))?;
109109
Ok(Self {
@@ -117,7 +117,7 @@ impl KVMDriver {
117117
}
118118

119119
#[instrument(err(Debug), skip_all, parent = Span::current(), level = "Trace")]
120-
fn setup_inital_sregs(vcpu_fd: &mut VcpuFd, pml4_addr: u64) -> Result<()> {
120+
fn setup_initial_sregs(vcpu_fd: &mut VcpuFd, pml4_addr: u64) -> Result<()> {
121121
// setup paging and IA-32e (64-bit) mode
122122
let mut sregs = vcpu_fd.get_sregs()?;
123123
sregs.cr3 = pml4_addr;

src/hyperlight_host/src/hypervisor/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ mod tests {
109109
/// Marking this test as ignored means that running `cargo test` will not
110110
/// run it. This will allow a developer who runs that command
111111
/// from their workstation to be successful without needing to know about
112-
/// test interdependencies. This test will, however, be run explcitly as a
112+
/// test interdependencies. This test will, however, be run explicitly as a
113113
/// part of the CI pipeline.
114114
fn test_metrics() {
115115
let iter: HypervisorMetricIter = HypervisorMetric::iter();
@@ -151,7 +151,7 @@ mod tests {
151151
/// Marking this test as ignored means that running `cargo test` will not
152152
/// run it. This will allow a developer who runs that command
153153
/// from their workstation to be successful without needing to know about
154-
/// test interdependencies. This test will, however, be run explcitly as a
154+
/// test interdependencies. This test will, however, be run explicitly as a
155155
/// part of the CI pipeline.
156156
fn test_gather_metrics() {
157157
lazy_static! {

0 commit comments

Comments
 (0)