Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/publish-bolt-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/cache@v4
name: cache solana cli
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Cache rust
uses: Swatinem/rust-cache@v2
- name: Run fmt
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Cache rust
uses: Swatinem/rust-cache@v2

- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set DRY_RUN based on trigger
run: echo "DRY_RUN=true" >> $GITHUB_ENV
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-bolt-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/cache@v4
name: cache solana cli
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Cache rust
uses: Swatinem/rust-cache@v2

- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set DRY_RUN based on trigger
run: echo "DRY_RUN=true" >> $GITHUB_ENV
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set DRY_RUN based on trigger
shell: bash
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
needs: publish-npm-binaries
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Set DRY_RUN based on trigger
run: echo "DRY_RUN=true" >> $GITHUB_ENV
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v')
Expand All @@ -214,7 +214,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set the release version
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
matrix:
task: [clippy, yarn]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install node modules
run: |
yarn --frozen-lockfile --network-concurrency 2
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -98,5 +98,9 @@ jobs:
cd clients/typescript
yarn install && yarn build
cd ../..
# Set limits for being able to run ephemeral-validator test process
sudo prlimit --pid $$ --nofile=1048576:1048576
sudo sysctl fs.inotify.max_user_instances=1280
sudo sysctl fs.inotify.max_user_watches=655360
bolt test

36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.2.6" }
world = { path = "crates/programs/world", features = ["cpi"], version = "=0.2.6"}
bolt-system = { path = "crates/programs/bolt-system", features = ["cpi"], version = "=0.2.6"}
bolt-component = { path = "crates/programs/bolt-component", features = ["cpi"], version = "=0.2.6"}
component-large = { path = "examples/component-large", features = ["cpi"], version = "=0.2.6"}
component-small = { path = "examples/component-small", features = ["cpi"], version = "=0.2.6"}
small = { path = "examples/component-small", features = ["cpi"], version = "=0.2.6"}

## External crates
session-keys = { version = "^2", features = ["no-entrypoint"] }
Expand Down
7 changes: 3 additions & 4 deletions clients/csharp/Solana.Unity.Bolt.Test/AccelerationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ await Profiler.Run("InitializePositionComponentOnAccelerationEntity", async () =
await Profiler.Run("DelegateComponent", async () => {
await DelegateComponent(framework);
});
// TODO: Re-enable this test when ephemeral-validator is properly installed on the CI.
// await Profiler.Run("ApplySimpleMovementSystemOnAccelerator 10", async () => {
// await ApplySimpleMovementSystemOnAccelerator(framework);
// });
await Profiler.Run("ApplySimpleMovementSystemOnAccelerator 10", async () => {
await ApplySimpleMovementSystemOnAccelerator(framework);
});
}

public static async Task AddAccelerationEntity(Framework framework) {
Expand Down
3 changes: 0 additions & 3 deletions clients/typescript/test/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ export class Framework {
this.systemSimpleMovement = anchor.workspace.SystemSimpleMovement;
this.systemFly = anchor.workspace.SystemFly;
this.systemApplyVelocity = anchor.workspace.SystemApplyVelocity;
this.systemWithManyComponents = anchor.workspace.SystemWithManyComponents;
this.systemWithFewComponents = anchor.workspace.SystemWithFewComponents;
this.componentLarge = anchor.workspace.Large;
this.componentSmall = anchor.workspace.Small;
this.systemWith1Component = anchor.workspace.With1Component;
this.systemWith2Components = anchor.workspace.With2Components;
Expand Down
61 changes: 30 additions & 31 deletions clients/typescript/test/intermediate-level/acceleration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,37 +64,36 @@ export function acceleration(framework: Framework) {
expect(acc?.owner.toBase58()).to.equal(DELEGATION_PROGRAM_ID.toBase58());
});

// TODO: Re-enable this test when ephemeral-validator is properly installed on the CI.
// it("Apply Simple Movement System (Up) on Entity 1 on Accelerator 10 times", async () => {
// for (let i = 0; i < 10; i++) {
// let applySystem = await ApplySystem({
// authority: framework.provider.wallet.publicKey,
// systemId: framework.systemSimpleMovement.programId,
// world: framework.worldPda,
// entities: [
// {
// entity: framework.acceleratedEntityPda,
// components: [
// { componentId: framework.exampleComponentPosition.programId },
// ],
// },
// ],
// args: {
// direction: Direction.Up,
// },
// });
it("Apply Simple Movement System (Up) on Entity 1 on Accelerator 10 times", async () => {
for (let i = 0; i < 10; i++) {
let applySystem = await ApplySystem({
authority: framework.provider.wallet.publicKey,
systemId: framework.systemSimpleMovement.programId,
world: framework.worldPda,
entities: [
{
entity: framework.acceleratedEntityPda,
components: [
{ componentId: framework.exampleComponentPosition.programId },
],
},
],
args: {
direction: Direction.Up,
},
});

// await framework.acceleratorProvider.sendAndConfirm(
// applySystem.transaction,
// [],
// {
// skipPreflight: true,
// commitment: "processed",
// },
// );
// // Wait for 50ms
// await new Promise((resolve) => setTimeout(resolve, 50));
// }
// });
await framework.acceleratorProvider.sendAndConfirm(
applySystem.transaction,
[],
{
skipPreflight: true,
commitment: "processed",
},
);
// Wait for 50ms
await new Promise((resolve) => setTimeout(resolve, 50));
}
});
});
}
Loading
Loading