Skip to content

Commit fd7d286

Browse files
authored
Release v6.1.1 into Main
2 parents 30bda90 + 3448177 commit fd7d286

132 files changed

Lines changed: 5537 additions & 1239 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/code.end-to-end-test.nightly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ jobs:
4040
run: npm ci
4141
- name: Run Cypress E2E Suite
4242
env:
43-
TEST_ACCOUNT_PASSWORD: ${{ secrets.TEST_ACCOUNT_PASSWORD }}
43+
ADMIN_USER_NAME: ${{ secrets.ADMIN_USER_NAME }}
44+
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
45+
USER_NAME: ${{ secrets.USER_NAME }}
46+
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
4447
run: npx cypress run --config-file cypress/cypress.e2e.config.ts
4548
- name: Archive Cypress videos & screenshots
4649
if: failure() || always()
4750
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v4
4851
with:
4952
name: cypress-e2e-artifacts
5053
path: |
51-
cypress/e2e/videos
52-
cypress/e2e/screenshots
54+
cypress/videos/e2e
55+
cypress/screenshots/e2e
5356
5457
notify_e2e_end:
5558
name: 🔔 E2E Tests Finished

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ config-custom.yaml
5353
# Test Artifacts
5454
/cypress/videos
5555
/cypress/screenshots
56+
/cypress/logs
57+
58+
# Cypress local environment
59+
/cypress/.env.local

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ repos:
116116
files: \.[jt]sx?$
117117
types: [file]
118118
args:
119-
- --max-warnings=10
119+
- --max-warnings=20
120+
- --no-warn-ignored
120121
- --fix
121122

122123
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
# v6.1.1
2+
3+
## UI Cleanup
4+
### [Light/Dark Theme Fixes]
5+
Some UI elements in light mode were being rendered in a dark theme, such as code blocks, Mermaid tables, message metadata, etc. This change ensures elements render in their appropriate theme based on the user's selection.
6+
7+
### [Auto-Scrolling Fix]
8+
Allows users to break out of auto-scrolling during streamed responses by scrolling away from the bottom of the screen. Users can reset auto-scrolling by scrolling back down to the bottom of the stream.
9+
10+
### [API Token Dashboard Metrics]
11+
This change ensures that users who programmatically interact with LISA are captured in the metrics dashboard. Additionally, it introduces a reorganization of the metrics dashboard to enhance readability.
12+
13+
### [Cypress Smoke Test Refactor]
14+
Significantly enhanced the smoke tests to be more reliable. Added new E2E tests that reuse the smoke tests and a new model creation workflow E2E test.
15+
16+
### [Session History Reload Fix]
17+
Fixed session history not loading when selected, and updated session hooks to correctly invalidate and retrieve the session after selecting a new session.
18+
19+
### [Markdown Table Support]
20+
Introduced GitHub Flavored Markdown (GFM) to support markdown tables. Added Tailwind CSS overrides to render markdown in chat prompts. Enhanced the system prompt to render math expressions without additional prompting.
21+
22+
23+
## Key Changes
24+
- **Documentation**: Added access control details to the Getting Started section along with general updates, added instructions on how to accept the self-signed certificate in the browser, and updates to configuration labels.
25+
- **Cypress Tests**: Added additional smoke tests to ensure admin pages load with data, chat prompts render responses, chat sessions are selectable and load properly, and non-admins can't navigate to admin pages.
26+
- **Administrative**: Added an `AdminRoute` wrapper around the `McpWorkbench` component.
27+
28+
## Acknowledgements
29+
* @bedanley
30+
* @estohlmann
31+
* @jmharold
32+
33+
**Full Changelog**: https://github.com/awslabs/LISA/compare/v6.1.0..v6.1.1
34+
135
# v6.1.0
236

337
## ⚠️ Important: Major Dependency Updates

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ define print_config
277277
endef
278278

279279
## Deploy all infrastructure
280-
deploy: installPythonRequirements dockerCheck dockerLogin cleanMisc modelCheck buildNpmModules
280+
deploy: install dockerCheck dockerLogin cleanMisc modelCheck buildNpmModules
281281
$(call print_config)
282282
ifeq ($(HEADLESS),true)
283283
npx cdk deploy ${STACK} $(if $(PROFILE),--profile ${PROFILE}) --require-approval never -c ${ENV}='$(shell echo '${${ENV}}')';

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.0
1+
6.1.1

cypress/.env.local.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Cypress E2E Test Configuration
2+
# Copy this file to .env.local and update with your local values
3+
# .env.local is gitignored and will not be committed
4+
5+
# Base URL for your local instance
6+
BASE_URL=http://localhost:8080
7+
8+
# Admin test account credentials
9+
ADMIN_USER_NAME=admin@example.com
10+
ADMIN_PASSWORD=your-admin-password-here
11+
12+
# Non-admin test account credentials
13+
USER_NAME=testuser@example.com
14+
USER_PASSWORD=your-user-password-here

cypress/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ DevTools listening on ws://127.0.0.1:51352/devtools/browser/2f804c68-414e-4004-9
5454
│ Node Version: v18.20.4 (/.../.nvm/versions/node/v18.20.4/bin/node) │
5555
│ Specs: 1 found (administration.e2e.spec.ts) │
5656
│ Searched: src/e2e/specs/**/*.e2e.spec.ts │
57-
│ Experiments: experimentalStudio=true │
5857
└────────────────────────────────────────────────────────────────────────────────────────────────┘
5958
6059

cypress/cypress.e2e.config.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,41 @@
1717
/// <reference types="node" />
1818

1919
import { defineConfig } from 'cypress';
20+
import * as dotenv from 'dotenv';
21+
import * as fs from 'fs';
2022
import path from 'path';
2123

2224
const PROJECT_ROOT = path.resolve(__dirname);
2325

26+
// Load local environment file if it exists
27+
const envPath = path.join(PROJECT_ROOT, '.env.local');
28+
if (fs.existsSync(envPath)) {
29+
dotenv.config({ path: envPath });
30+
}
31+
2432
export default defineConfig({
2533
video: true, // turn on video recording
2634
videoCompression: true,
2735
videosFolder: `${PROJECT_ROOT}/videos/e2e`, // where to save .mp4 files
2836
screenshotOnRunFailure: true, // auto‑snap on any test failure
2937
screenshotsFolder: `${PROJECT_ROOT}/screenshots/e2e`,
3038
trashAssetsBeforeRuns: true, // wipe out old videos/screenshots
39+
defaultCommandTimeout: 30000, // 30 seconds for real API calls
40+
requestTimeout: 30000, // 30 seconds for API requests
41+
responseTimeout: 30000, // 30 seconds for API responses
42+
chromeWebSecurity: false, // Disable web security to allow cross-origin requests
3143
e2e: {
3244
specPattern: `${PROJECT_ROOT}/src/e2e/specs/**/*.e2e.spec.ts`,
3345
supportFile: `${PROJECT_ROOT}/src/e2e/support/index.ts`,
34-
experimentalStudio: true,
3546
fixturesFolder: `${PROJECT_ROOT}/src/e2e/fixtures`,
3647
setupNodeEvents () {
3748
},
38-
baseUrl: 'https://5bma74uv9c.execute-api.us-east-1.amazonaws.com/dev',
49+
baseUrl: process.env.BASE_URL || 'https://chat.dev.lisa.aiml-adc.aws.dev',
3950
env: {
40-
TEST_ACCOUNT_PASSWORD: process.env.TEST_ACCOUNT_PASSWORD,
51+
ADMIN_USER_NAME: process.env.ADMIN_USER_NAME,
52+
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD,
53+
USER_NAME: process.env.USER_NAME,
54+
USER_PASSWORD: process.env.USER_PASSWORD,
4155
},
4256
},
4357
});

0 commit comments

Comments
 (0)