Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): remove wasm test that is not relevant #1653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion tfhe/web_wasm_parallel_tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
Default timeout is available in ci/webdriver.py under variable name `case_timeout_seconds`
-->

<input type="button" id="publicKeyTest" value="Public Key Test" disabled />
<input
type="button"
id="compressedPublicKeyTest"
Expand Down
1 change: 0 additions & 1 deletion tfhe/web_wasm_parallel_tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ async function setup() {
const demos = await Comlink.wrap(worker).demos;

const demoNames = [
"publicKeyTest",
"compressedPublicKeyTest",
"compressedCompactPublicKeyTest256BitBig",
"compressedCompactPublicKeyTest256BitSmall",
Expand Down
23 changes: 0 additions & 23 deletions tfhe/web_wasm_parallel_tests/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,6 @@ async function compressedPublicKeyTest() {
assert_eq(decrypted, 255);
}

async function publicKeyTest() {
let config = TfheConfigBuilder.default_with_small_encryption().build();

console.time("ClientKey Gen");
let clientKey = TfheClientKey.generate(config);
console.timeEnd("ClientKey Gen");

console.time("PublicKey Gen");
let publicKey = TfhePublicKey.new(clientKey);
console.timeEnd("PublicKey Gen");

console.time("FheUint8 encrypt with PublicKey");
let encrypted = FheUint8.encrypt_with_public_key(255, publicKey);
console.timeEnd("FheUint8 encrypt with PublicKey");

let ser = encrypted.serialize();
console.log("Ciphertext Size", ser.length);

let decrypted = encrypted.decrypt(clientKey);
assert_eq(decrypted, 255);
}

async function compactPublicKeyBench32BitOnConfig(config) {
const bench_loops = 100;
let bench_results = {};
Expand Down Expand Up @@ -733,7 +711,6 @@ async function main() {
await init_panic_hook();

return Comlink.proxy({
publicKeyTest,
compressedPublicKeyTest,
compressedCompactPublicKeyTest256BitSmall,
compressedCompactPublicKeyTest256BitBig,
Expand Down
Loading