Skip to content

Commit baff05a

Browse files
authored
Merge branch 'main' into add-win-2025-ci-jobs
Signed-off-by: Mark Rossetti <[email protected]>
2 parents 694b1e7 + 4fdab8f commit baff05a

File tree

700 files changed

+2628
-3142
lines changed

Some content is hidden

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

700 files changed

+2628
-3142
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ Make sure that you keep commits small and focused. Each commit should represent
6363
Make sure that you arrange your commits in a logical order. You can use `git rebase -i` to do this.
6464
If you update your PR branch with new commits, make sure to rebase your branch on top of the main branch. This will help keep the commit history clean and make it easier to review your changes.
6565
Make sure that you do not have any merge commits in your PR.
66-
If when running tests you receive an Error like this "Error("No Hypervisor was found for Sandbox, Hypervisor Handler Message Receive Timedout")" then the real error is the string inside the brackets before the comma, so in this example
67-
the error is "No Hypervisor was found for Sandbox".
6866
If you see the error "No Hypervisor was found for Sandbox" then you if you are running on Linux you should check to see if there is a device called "kvm" or "mshv" in `/dev` and if it is present you should also check to see if you have rw access to it. You should ensure that you output the results of these checks for diagnostic purposes.
6967
This repository requires commits to be signed you should ensure that any commits that you create are done with `commit.gpgsign=true`. Also commits should also be signed with the `--signoff` option to comply with the DCO requirement.
7068

@@ -76,6 +74,7 @@ This repository requires commits to be signed you should ensure that any commits
7674
- `fuzz` - contains the fuzzing tests for the project
7775
- `src/hyperlight_common/` - contains the common code shared between the host and guest
7876
- `src/hyperlight_guest/` - contains the hyperlight-guest library code
77+
- `src/hyperlight_guest_bin/` - contains the hyperlight-guest-bin library code
7978
- `src/hyperlight_host/` - contains the hyperlight-host library code
8079
- `src/hyperlight_guest_capi/` - contains the hyperlight-guest C library code
8180
- `src/hyperlight_testing/` - contains the shared code for tests

.github/workflows/CargoPublish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
VERSION="${{ github.ref }}"
4646
VERSION="${VERSION#refs/heads/release/v}"
4747
fi
48-
./dev/verify-version.sh "$VERSION" hyperlight-common hyperlight-guest hyperlight-host
48+
./dev/verify-version.sh "$VERSION" hyperlight-common hyperlight-guest hyperlight-guest-bin hyperlight-host
4949
5050
- name: Publish hyperlight-common
5151
continue-on-error: ${{ inputs.dry_run }}
@@ -59,6 +59,12 @@ jobs:
5959
env:
6060
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
6161

62+
- name: Publish hyperlight-guest-bin
63+
continue-on-error: ${{ inputs.dry_run }}
64+
run: cargo publish --manifest-path ./src/hyperlight_guest_bin/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}
65+
env:
66+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
67+
6268
- name: Publish hyperlight-host
6369
continue-on-error: ${{ inputs.dry_run }}
6470
run: cargo publish --manifest-path ./src/hyperlight_host/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}

.github/workflows/ValidatePullRequest.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ jobs:
6565
steps:
6666
- uses: actions/checkout@v4
6767
- name: Spell Check Repo
68-
uses: crate-ci/[email protected]
68+
uses: crate-ci/[email protected]
69+
70+
license-headers:
71+
name: check license headers
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Check License Headers
76+
run: ./dev/check-license-headers.sh
6977

7078
# Gate PR merges on this specific "join-job" which requires all other
7179
# jobs to run first. We need this job since we cannot gate on particular jobs
@@ -77,6 +85,7 @@ jobs:
7785
- rust
7886
- fuzzing
7987
- spelling
88+
- license-headers
8089
if: always()
8190
runs-on: ubuntu-latest
8291
steps:

.github/workflows/dep_rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
run: just build ${{ matrix.config }}
9494

9595
- name: Verify MSRV
96-
run: ./dev/verify-msrv.sh hyperlight-host hyperlight-guest hyperlight-common
96+
run: ./dev/verify-msrv.sh hyperlight-host hyperlight-guest hyperlight-guest-bin hyperlight-common
9797

9898
- name: Run Rust tests
9999
env:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
44

55
## [Prerelease] - Unreleased
66

7+
## [v0.5.1] - 2025-06-02
8+
### Fixed
9+
- Fixed an issue with the `hyperlight_host` not building on v0.5.0
10+
711
## [v0.5.0] - 2025-05-28
812

913
### Changed

CONTRIBUTING.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project welcomes contributions. Most contributions require you to signoff o
44
the Developer Certificate of Origin (DCO). When you submit a pull request, a DCO-bot will automatically determine
55
whether you need to provide signoff for your commit. Please follow the instructions provided by DCO-bot, as pull
66
requests cannot be merged until the author(s) have provided signoff to fulfill the DCO requirement.
7-
You may find more information on the DCO requirements [below](#developer-certificate-of-origin-signing-your-work).
7+
You may find more information on the DCO requirements [below](#developer-certificate-of-origin-and-gpg-signing).
88

99
## Issues
1010

@@ -31,20 +31,28 @@ All contributions come through pull requests. To submit a proposed change, we re
3131
- Code changes require tests
3232
- Make sure to run the linters to check and format the code
3333
4. Update relevant documentation for the change
34-
5. Commit with [DCO sign-off](#developer-certificate-of-origin-signing-your-work) and open a PR
34+
5. Commit with [DCO sign-off](#developer-certificate-of-origin-and-gpg-signing) and open a PR
3535
6. Wait for the CI process to finish and make sure all checks are green
3636
7. A maintainer of the project will be assigned, and you can expect a review within a few days
3737

3838
#### Use work-in-progress PRs for early feedback
3939

4040
A good way to communicate before investing too much time is to create a "Work-in-progress" PR and share it with your reviewers. The standard way of doing this is to add a "[WIP]" prefix in your PR's title and open the pull request as a draft.
4141

42-
### Developer Certificate of Origin: Signing your work
42+
### Developer Certificate of Origin and GPG Signing
4343

4444
#### Every commit needs to be signed
4545

46+
This project requires two types of signatures on all commits:
47+
48+
1. **Developer Certificate of Origin (DCO) Sign-off**: A text attestation that you have the right to submit the code
49+
2. **GPG Signature**: A cryptographic signature verifying your identity
50+
51+
**For DCO Sign-offs:**
52+
4653
The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the [DCO](https://developercertificate.org/), reformatted for readability:
47-
```
54+
55+
```text
4856
By making a contribution to this project, I certify that:
4957
5058
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
@@ -70,18 +78,41 @@ Git even has a `-s` command line option to append this automatically to your com
7078
git commit -s -m 'This is my commit message'
7179
```
7280

73-
Each Pull Request is checked whether or not commits in a Pull Request do contain a valid Signed-off-by line.
81+
**For GPG Signatures:**
82+
83+
GPG signatures verify the identity of the committer. For detailed setup instructions, see GitHub's documentation on [signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits).
84+
85+
Quick setup:
7486

75-
#### I didn't sign my commit, now what?!
87+
```sh
88+
git config --global user.signingkey YOUR_KEY_ID
89+
git config --global commit.gpgsign true
90+
```
91+
92+
**For both DCO sign-off and GPG signature in one command:**
93+
94+
```sh
95+
git commit -S -s -m 'This is my signed and signed-off commit message'
96+
```
97+
98+
For detailed instructions on setting up GPG signing, see [GitHub's documentation on signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits).
99+
100+
Each Pull Request is checked to ensure all commits contain valid DCO sign-offs and GPG signatures.
101+
102+
#### I didn't sign my commit, now what?
76103

77104
No worries - You can easily replay your changes, sign them and force push them!
78105

106+
**For adding both DCO sign-off and GPG signature:**
107+
79108
```sh
80109
git checkout <branch-name>
81-
git commit --amend --no-edit --signoff
110+
git commit --amend --no-edit -S -s
82111
git push --force-with-lease <remote-name> <branch-name>
83112
```
84113

114+
For more detailed instructions on setting up GPG signing, see [GitHub's documentation on signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits).
115+
85116
*Credit: This doc was cribbed from Dapr.*
86117

87118
### Rust Analyzer

0 commit comments

Comments
 (0)