diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 182b6240f..ea5cf7edc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: EMAIL_FROM: noreply@example.com # DEGREE VALIDATOR - NEXT_PUBLIC_VALIDATOR: http://localhost:5000 + NEXT_PUBLIC_VALIDATOR: http://127.0.0.1:5000 NODE_ENV: test @@ -72,10 +72,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Setup Python3.10 + - name: Setup Python3.11 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Start validator server working-directory: validator diff --git a/.github/workflows/validator_test.yml b/.github/workflows/validator_test.yml index a798837ef..8f78c2e20 100644 --- a/.github/workflows/validator_test.yml +++ b/.github/workflows/validator_test.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | diff --git a/README.md b/README.md index e177a6b18..0ccc9d997 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ To be able to start development on Planner make sure that you have the following - [Node.js v16 or above](https://nodejs.org/en) - [Git](https://git-scm.com/downloads) -- [Python3.10](https://www.python.org/downloads) +- [Python3.11](https://www.python.org/downloads)
@@ -144,7 +144,7 @@ npm install ```bash cd validator - python3.10 -m venv venv # Create virtual environment + python3.11 -m venv venv # Create virtual environment source venv/bin/activate # Use virtual enviornment pip install -r requirements.txt # Install dependencies flask --app api run diff --git a/cypress/e2e/create-plan.cy.ts b/cypress/e2e/create-plan.cy.ts index f92cbf2c0..41a48dcfc 100644 --- a/cypress/e2e/create-plan.cy.ts +++ b/cypress/e2e/create-plan.cy.ts @@ -49,5 +49,10 @@ describe('Plan creation flow', () => { .then(($el) => $el.text()) .should('eq', major); }); + + cy.get('#tutorial-editor-1 svg.animate-spin').should('not.exist', { timeout: 10000 }); + cy.get('#tutorial-editor-1') + .contains('It seems like a screw has gone loose!', { timeout: 0 }) + .should('not.exist'); }); }); diff --git a/src/server/trpc/router/validator.ts b/src/server/trpc/router/validator.ts index 19cb2446a..7d00e5ed1 100644 --- a/src/server/trpc/router/validator.ts +++ b/src/server/trpc/router/validator.ts @@ -391,7 +391,7 @@ export const validatorRouter = router({ }) .catch((err) => { const errorMessage = `Validator error: ${err.message}`; - console.error(errorMessage); + console.error('Validator error', err); throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', cause: err, diff --git a/validator/requirements.txt b/validator/requirements.txt index 49ce278ee..3cdb804fe 100644 --- a/validator/requirements.txt +++ b/validator/requirements.txt @@ -24,12 +24,12 @@ mypy==1.0.0 mypy-extensions==0.4.3 numpy==1.23.4 ordered-set==4.1.0 -ortools==9.4.1874 +ortools==9.7.2996 packaging==22.0 pathspec==0.10.3 platformdirs==2.6.0 pluggy==1.0.0 -protobuf==4.21.7 +protobuf==4.23.3 pydantic==1.10.2 Pygments==2.15.0 pyparsing==3.0.9