Skip to content

Commit

Permalink
chore(innate): add rust [email protected] dup id removal
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 10, 2024
1 parent f63ecb2 commit 7e4ebc2
Show file tree
Hide file tree
Showing 22 changed files with 341 additions and 2,277 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: corepack enable && corepack prepare yarn@stable --activate

- name: Wasm pack build modules
run: cd kayle_innate && wasm-pack build --release --target nodejs kayle_innate && cd ../
run: cd kayle_innate && wasm-pack build --release --target nodejs && cd ../

- name: Install and build locales
run: yarn --no-immutable && yarn build && npx playwright install --with-deps chromium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: corepack enable && corepack prepare yarn@stable --activate

- name: Wasm pack build modules
run: cd kayle_innate && wasm-pack build --release --target nodejs kayle_innate && cd ../
run: cd kayle_innate && wasm-pack build --release --target nodejs && cd ../

- name: Install and build locales
run: yarn --no-immutable && yarn build && npx playwright install --with-deps chromium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: corepack enable && corepack prepare yarn@stable --activate

- name: Wasm pack build modules
run: cd kayle_innate && wasm-pack build --release --target nodejs kayle_innate && cd ../
run: cd kayle_innate && wasm-pack build --release --target nodejs && cd ../

- name: Install and build locales
run: yarn --no-immutable && yarn build && npx playwright install --with-deps chromium
Expand Down
1 change: 0 additions & 1 deletion kayle/lib/wasm/rust-audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { runActionsList } from "../action";

// get the configs required for a rust based audit
export const innateBuilder = async (o: RunnerConf) => {
console.log("NOT READY YET. Do not use.");
const watcher = new Watcher();
const config = extractArgs(o, watcher);

Expand Down
2 changes: 1 addition & 1 deletion kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kayle",
"version": "0.8.10",
"version": "0.8.11",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions kayle/tests/innate-playwright.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { innateBuilder, kayle } from "kayle";
import { drakeMock } from "./mocks/html-mock";
import { performance } from "perf_hooks";
import { test } from "@playwright/test";
import { _audit_not_ready } from "kayle_innate";
import { audit } from "kayle_innate";

test("kayle_innate, fast_htmlcs and fast_axecore audit drakeMock profiling compare", async ({
page,
Expand All @@ -24,7 +24,7 @@ test("kayle_innate, fast_htmlcs and fast_axecore audit drakeMock profiling compa
""
);
const startTime = performance.now();
await _audit_not_ready(mock, css, false);
await audit(mock, css, false);
const nextTime = performance.now() - startTime;
console.log("Rust/WASM TIME ", nextTime);

Expand Down
4 changes: 2 additions & 2 deletions kayle/tests/innate.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { audit } from "kayle_innate";
import puppeteer from "puppeteer";
import { innateBuilder, kayle } from "kayle";
import { drakeMock } from "./mocks/html-mock";
import { performance } from "perf_hooks";
import { _audit_not_ready } from "kayle_innate";

// setup test for rust wasm auditing
(async () => {
Expand Down Expand Up @@ -33,7 +33,7 @@ import { _audit_not_ready } from "kayle_innate";
);

const startTime = performance.now();
await _audit_not_ready(mock, css, false);
await audit(mock, css, false);
const nextTime = performance.now() - startTime;
console.log("Rust/WASM TIME ", nextTime);

Expand Down
Loading

0 comments on commit 7e4ebc2

Please sign in to comment.