Skip to content

Commit

Permalink
chore: bump version and release crates (#1038)
Browse files Browse the repository at this point in the history
* chore: bump version and release crates

Signed-off-by: David Dal Busco <[email protected]>

* chore: bump version and release crates

Signed-off-by: David Dal Busco <[email protected]>

* chore: bump version and release crates

Signed-off-by: David Dal Busco <[email protected]>

* chore: bump version and release crates

Signed-off-by: David Dal Busco <[email protected]>

* test: update expected cert

Signed-off-by: David Dal Busco <[email protected]>

* chore: redo as in main

Signed-off-by: David Dal Busco <[email protected]>

* feat: pin ic-certification v2.4.0

Signed-off-by: David Dal Busco <[email protected]>

* build: release storage with pinned ic-certification

Signed-off-by: David Dal Busco <[email protected]>

* build: release satellite with pinned ic-certification

Signed-off-by: David Dal Busco <[email protected]>

* test: more timeout

Signed-off-by: David Dal Busco <[email protected]>

---------

Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker authored Jan 10, 2025
1 parent 136df2f commit 0805c39
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 50 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions src/libs/collections/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "junobuild-collections"
version = "0.0.9"
version = "0.0.10"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand All @@ -17,4 +17,4 @@ targets = ["wasm32-unknown-unknown"]
candid.workspace = true
ic-cdk.workspace = true
serde.workspace = true
junobuild-shared = "0.0.22"
junobuild-shared = "0.0.23"
8 changes: 4 additions & 4 deletions src/libs/satellite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "junobuild-satellite"
version = "0.0.21-patch.2"
version = "0.0.21-patch.4"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down Expand Up @@ -44,7 +44,7 @@ regex.workspace = true
getrandom.workspace = true
rand.workspace = true
url = "2.4.0"
junobuild-shared = "0.0.22"
junobuild-shared = "0.0.23"
junobuild-utils = "0.0.4"
junobuild-collections = "0.0.9"
junobuild-storage = "0.0.12"
junobuild-collections = "0.0.10"
junobuild-storage = "0.0.14"
2 changes: 1 addition & 1 deletion src/libs/shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "junobuild-shared"
version = "0.0.22"
version = "0.0.23"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions src/libs/storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "junobuild-storage"
version = "0.0.12"
version = "0.0.14"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down Expand Up @@ -29,5 +29,5 @@ base64 = "0.13.1"
url = "2.4.0"
urlencoding = "2.1.3"
globset = "0.4.13"
junobuild-shared = "0.0.22"
junobuild-collections = "0.0.9"
junobuild-shared = "0.0.23"
junobuild-collections = "0.0.10"
86 changes: 50 additions & 36 deletions src/tests/satellite.upgrade.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,26 +430,33 @@ describe('Satellite upgrade', () => {
let newActor: Actor<SatelliteActor_0_0_17>;

describe('Custom domain', () => {
it('should add version set to none to custom domain', async () => {
const { set_custom_domain } = actor;
it(
'should add version set to none to custom domain',
async () => {
const { set_custom_domain } = actor;

await set_custom_domain('hello.com', ['123456']);
await set_custom_domain('test2.com', []);
await set_custom_domain('hello.com', ['123456']);
await set_custom_domain('test2.com', []);

await upgradeVersion('0.0.17');
await upgradeVersion('0.0.17');

newActor = pic.createActor<SatelliteActor_0_0_17>(idlFactorSatellite_0_0_17, canisterId);
newActor.setIdentity(controller);
newActor = pic.createActor<SatelliteActor_0_0_17>(
idlFactorSatellite_0_0_17,
canisterId
);
newActor.setIdentity(controller);

const { list_custom_domains } = newActor;
const { list_custom_domains } = newActor;

const results = await list_custom_domains();
const results = await list_custom_domains();

expect(results).toHaveLength(2);
expect(results).toHaveLength(2);

expect(fromNullable(results[0][1].version)).toBeUndefined();
expect(fromNullable(results[1][1].version)).toBeUndefined();
});
expect(fromNullable(results[0][1].version)).toBeUndefined();
expect(fromNullable(results[1][1].version)).toBeUndefined();
},
{ timeout: 60000 }
);

it('should be able to update after upgrade and has version set', async () => {
const { set_custom_domain: set_custom_domain_deprecated } = actor;
Expand Down Expand Up @@ -511,29 +518,36 @@ describe('Satellite upgrade', () => {
});
};

it('should add version set to none to custom domain', async () => {
await upload({ actor, full_path: `/${collection}/ugprade.html` });
await upload({ actor, full_path: `/${collection}/ugprade2.html` });
await upload({ actor, full_path: `/${collection}/ugprade3.html` });

await upgradeVersion('0.0.17');

newActor = pic.createActor<SatelliteActor_0_0_17>(idlFactorSatellite_0_0_17, canisterId);
newActor.setIdentity(controller);

const { list_assets } = newActor;

const assets = await list_assets(collection, {
matcher: [],
order: [],
owner: [],
paginate: []
});

for (const [_, { version }] of assets.items) {
expect(fromNullable(version)).toBeUndefined();
}
});
it(
'should add version set to none to custom domain',
async () => {
await upload({ actor, full_path: `/${collection}/ugprade.html` });
await upload({ actor, full_path: `/${collection}/ugprade2.html` });
await upload({ actor, full_path: `/${collection}/ugprade3.html` });

await upgradeVersion('0.0.17');

newActor = pic.createActor<SatelliteActor_0_0_17>(
idlFactorSatellite_0_0_17,
canisterId
);
newActor.setIdentity(controller);

const { list_assets } = newActor;

const assets = await list_assets(collection, {
matcher: [],
order: [],
owner: [],
paginate: []
});

for (const [_, { version }] of assets.items) {
expect(fromNullable(version)).toBeUndefined();
}
},
{ timeout: 60000 }
);

it('should be able to update after upgrade and has version set', async () => {
const full_path = `/${collection}/ugprade.html`;
Expand Down

0 comments on commit 0805c39

Please sign in to comment.