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

feat: temp disable feedback cache #695

Merged
merged 5 commits into from
Dec 27, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
cache: "npm"
- name: Setup application
run: npm ci
- name: Install Playwright Browsers
- name: Install Chromium for Playwright
run: npx playwright install --with-deps chromium

- name: Start backend and frontend
Expand Down
3 changes: 3 additions & 0 deletions packages/backend/src/jobs/materializedViews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import sql from "../utils/db";
import { sleep } from "../utils/misc";

export async function startMaterializedViewRefreshJob() {
if (process.env.DISABLE_MATERIALIZED_VIEW_REFRESH) {
return;
}
try {
const views = ["run_parent_feedback_cache"];

Expand Down
3 changes: 1 addition & 2 deletions packages/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
// reporter: process.env.CI ? "github" : "html",
reporter: process.env.CI ? "github" : "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
actionTimeout: 10 * 1000,
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e/templates.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test("create new template and test basic playground", async ({ page }) => {

await expect(page.getByText("first-template")).toBeVisible();

await page.waitForSelector("[data-testid=run-playground]");
await page.getByTestId("run-playground").click();

await expect(page.getByText("Hello!")).toBeVisible();
Expand Down Expand Up @@ -65,5 +66,5 @@ test("create new text template and deploy", async ({ page }) => {

await page.getByTestId("deploy-template").click();

await expect(page.getByText("Template deployed")).toBeVisible();
await expect(await page.getByText("Template deployed")).toBeVisible();
});
Loading