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

QA: Jan 0.5.8 Release Sign-off #3911

Closed
imtuyethan opened this issue Oct 30, 2024 · 28 comments · Fixed by #3952
Closed

QA: Jan 0.5.8 Release Sign-off #3911

imtuyethan opened this issue Oct 30, 2024 · 28 comments · Fixed by #3952
Assignees
Labels
QA For tracking QA processes and initiatives
Milestone

Comments

@imtuyethan
Copy link
Contributor

imtuyethan commented Oct 30, 2024

Regression Test Checklist

Get original QA checklist here: https://hackmd.io/@janhq/SJO9kXpJ1x
Release Version: v0.5.8


A. Installation, Update, and Uninstallation

1. Users Install App (New User Flow)

  • Installation package passes all security checks.
  • App launches successfully after installation.

2. Users Update App (Existing User Flow)

  • Validate that the update does not corrupt user data or settings.
  • App restarts or prompts the user to restart after an update.
  • Ensure the /models directory has any JSON/YML files that change according to the update.
  • Updating the app also updates extensions' versions correctly.
  • The bottom bar displays the correct app status when updating.

3. Users Uninstall / Close App

  • After closing the app, confirm that all models are unloaded.
  • Ensure the uninstallation process removes the app from the system completely.
  • Verify that the app recreates all necessary folders (models, extensions) after reopening post-uninstallation.

Testing Script:

1. Users Install App (New User Flow)

a. Installation Package Security Check
	•	Test: Download the installation package from https://github.com/janhq/jan/releases
	•	Before running, check if the package is flagged by any system security features (e.g., macOS Gatekeeper, Windows SmartScreen, antivirus software).
	•	Expected Behavior: The system should not display any warnings, and the installation package should pass all security checks without errors.

b. App Launch
	•	Test: Run the installation process and attempt to launch the app after the installation is complete.
	•	Steps:
	1.	Double-click the installation package and follow the on-screen instructions to install the app.
	2.	After the installation completes, locate the app in the Applications folder (macOS) or Start Menu (Windows).
	3.	Launch the app.
	•	Expected Behavior: The app should launch successfully and display the home screen without any crashes or errors.
	•	Verify: Ensure that all necessary folders (e.g., /models, /extensions) are created during the first launch.

2. Users Update App (Existing User Flow)

a. Validate Data Integrity
	•	Test: Update the app without corrupting user data or settings.
	•	Steps:
	1.	Open the current version of the app and verify that all models and settings are intact.
	2.	Download the latest update and run the update process.
	3.	After the update, reopen the app and check if all models, settings, and extensions are preserved.
	•	Expected Behavior: The app should update without corrupting any user data or settings, and previously saved settings should be intact.
        •.      Test: Ensure the bottom status bar displays the correct update progress/status during the update process.
	•	Steps:
	1.	While running the update, observe the bottom status bar for any messages related to the progress of the update.
	2.	Check for clear communication (e.g., “Update in progress”, “Restart required”) during the update.
	•	Expected Behavior: The bottom bar should display the correct status of the update, and progress should be clearly communicated.

b. App Restart After Update
	•	Test: Confirm that the app restarts or prompts the user to restart after an update.
	•	Steps:
	1.	Once the update is completed, check if the app automatically restarts or prompts the user to manually restart.
	2.	Reopen the app after restarting to ensure the update was applied successfully.
	•	Expected Behavior: The app should either restart on its own or prompt the user to restart, and the update should be applied.

c. Models Directory Update
	•	Test: Ensure that the /models directory has the correct files (e.g., JSON/YML) according to the update.
	•	Steps:
	1.	Navigate to the /models directory in the file system.
	2.	Check if any new files (e.g., model.json, .yml) were added or modified during the update.
	•	Expected Behavior: The directory should reflect any necessary changes, and new models should have updated metadata files.

d. Extension Version Update
	•	Test: Confirm that updating the app also updates the extensions to the correct versions.
	•	Steps:
	1.	Open the Extensions section of the app after the update.
	2.	Check the version numbers of each extension and compare them with the release notes to ensure they are up to date.
	•	Expected Behavior: All core and model provider extensions should be updated to the correct versions.

3. Users Uninstall / Close App

a. Unload Models
	•	Test: Confirm that all models are unloaded when the app is closed.
	•	Steps:
	1.	Launch a model in the app and then close the application.
	2.	Reopen the app and check the model status to ensure that it was unloaded correctly.
	•	Expected Behavior: No models should remain active after the app is closed.

b. Complete Uninstallation
	•	Test: Verify that the uninstallation process removes the app completely from the system.
	•	Steps:
	1.	Use the Uninstall feature in the app or manually uninstall it from the system (e.g., move the app to the trash on macOS or use the Control Panel on Windows).
	2.	After uninstallation, check that the app folder and its related files (e.g., models, logs) have been deleted from the system.
	•	Expected Behavior: The app and all associated files should be removed from the system.

c. App Recreates Necessary Folders
	•	Test: After uninstallation and reinstallation, verify that the app recreates all necessary folders (models, extensions).
	•	Steps:
	1.	Reinstall the app after uninstalling it.
	2.	Check that the necessary directories (e.g., /models, /extensions) are automatically recreated upon relaunch.
	•	Expected Behavior: The app should recreate all required folders during the reinstallation and first launch process.

B. Chat and Thread Functionality

1. Users Can Chat with Jan (Default Assistant)

  • Sending a message allows users to receive responses from the model.
  • Conversation thread is maintained without any loss of data upon sending multiple messages.
  • Users should be able to edit the message, and the assistant will re-generate the answer based on the edited version of the message.
  • Test for the ability to send different types of messages (e.g., text, emojis, code blocks).
  • Check the output format of the AI (code blocks, JSON, markdown, etc.).
  • Validate the scroll functionality in the chat window for lengthy conversations.
  • Users can copy or delete the response.
  • Users can import documents (RAG), and the system should process queries about the uploaded file, providing accurate and appropriate responses in the conversation thread.
  • Users can import an image, and a model with vision (e.g., LLaVA) can generate responses. #294
  • Check the clear message / delete entire chat button functionality.
  • Test the assistant's ability to maintain context over multiple exchanges within one thread.
  • Check the create new chat button and confirm that a new conversation will have an automatically generated thread title based on the user's message.
  • Ensure the app can handle changing models mid-thread without losing the conversation's context.
  • Check the regenerate button to ensure it renews the response (single/multiple times).
  • Check that Instructions are updated correctly after the user updates it midway through the conversation (mid-thread).
  • Users can switch between models if multiple are available.
  • Validate appropriate error handling and messaging if the assistant fails to respond.
    • Simulate conditions where a model might fail to load.
    • Ensure logs and instructions guide users through resolving the issue.
    • Verify the app captures hardware and log info for troubleshooting.

Testing Script:

1. Users Can Chat with Jan (Default Assistant)

a. Sending Messages

	•	Test: Send a basic message like:
Prompt: “What is the capital of France?”
	•	Expected Response: “The capital of France is Paris.”
	•	Verify: Ensure the message is sent, and a response is received from the model without any errors.

b. Conversation Thread

	•	Test: Send multiple messages consecutively:
Prompt 1: “Tell me a joke.”
Prompt 2: “What is the largest planet in the solar system?”
Expected Response: The thread should maintain all previous conversation data without losing any context between messages.
	•	Verify: Ensure there is no loss of data or context as multiple messages are sent.

c. Editing Messages

	•	Test: Send a message and then edit it:
Prompt: “What is 2 + 2?”
	•	Edit: Change the question to “What is 5 + 3?”
	•	Expected Response: The assistant should re-generate the response based on the edited version, answering “5 + 3 is 8.”
	•	Verify: Ensure that the response updates correctly after editing the original prompt.

d. Sending Different Types of Messages

	•	Test: Send various types of messages, including text, emojis, and code blocks:
Prompt:

Here is a Python code:
```python
def hello():
    return "Hello, World!"

- **Expected Response**: The assistant should correctly format and display code blocks.
- **Verify**: Ensure that emojis (e.g., 😊) and code blocks are handled appropriately.



e. Output Format

	•	Test: Ensure the assistant generates responses in different formats:
Prompt: “Generate a JSON object with name, age, and location.”
	•	Expected Response:

{
  "name": "Alice",
  "age": 30,
  "location": "New York"
}


	•	Verify: Ensure the response is structured correctly according to the requested format.

f. Scroll Functionality

	•	Test: Engage in a long conversation or ask for a lengthy response:
Prompt: “Explain in detail how photosynthesis works.”
	•	Expected Response: The answer should be long enough to require scrolling.
	•	Verify: Ensure that scrolling works correctly and all content is visible without truncation.

g. Copy/Delete Response

	•	Test: Copy and delete specific responses in the chat.
	•	Verify: Ensure that responses can be copied and deleted correctly without affecting other messages.

h. Importing Documents (RAG)

	•	Test: Import a document and ask a query related to the content of the document.
Prompt: “Please answer based on this document.”
	•	Expected Response: The system should process the query and provide accurate responses based on the uploaded file’s content.

i. Importing an Image (Vision Model)

	•	Test: Import an image and ask the model (e.g., LLaVA) to generate a response:
Prompt: “Describe what is in this image.”
	•	Expected Response: The model should generate a description of the image.
	•	Verify: Ensure the model with vision capabilities responds accurately based on the uploaded image.

j. Clear/Delete Chat

	•	Test: Use the clear message / delete entire chat options.
	•	Verify: Ensure that these actions are successful and do not affect the model instructions or settings.

k. Context Over Multiple Exchanges

	•	Test: Engage in multiple exchanges within the same thread:
Prompt 1: “Who was Albert Einstein?”
Prompt 2: “What is the theory of relativity?”
	•	Expected Response: The assistant should maintain context between exchanges and refer to previous responses when relevant.

l. Create New Chat

	•	Test: Use the create new chat button and start a fresh conversation.
	•	Prompt: “What is the weather like today?”
	•	Expected Response: The conversation should start as a new thread, and the title should automatically generate based on the user’s message.
	•	Verify: Ensure that the previous conversation context is not carried over into the new chat.

m. Model Switching Mid-Thread

	•	Test: Switch models mid-thread and ask for another response.
Prompt: “Can you write a haiku?”
	•	Expected Response: The app should handle switching models and generate a response from the newly selected model without losing conversation context.

n. Regenerate Response

	•	Test: Use the regenerate button to regenerate the assistant’s response.
Prompt: “Tell me something about space exploration.”
	•	Expected Response: A new response should be generated upon clicking the regenerate button.
	•	Verify: Ensure that the regenerate button works multiple times if needed.

o. Instructions Update

	•	Test: Update the instructions for the assistant midway through a conversation.
Prompt: Update the instruction to “Give concise answers” and ask:
Prompt: “What is quantum computing?”
	•	Expected Response: The response should be concise, reflecting the updated instructions.
	•	Verify: Ensure that the instruction update is applied immediately.

p. Error Handling

	•	Test: Simulate conditions where a model might fail to load (e.g., disconnect network temporarily).
	•	Expected Behavior: Logs and instructions should guide users through the issue.
	•	Verify: Ensure the app captures hardware information and logs for troubleshooting.

2. Model Display & Handling

  • Models in Model Selection should highlight recommended models based on user RAM (this is likely based on a static formula).
  • Models in Model Selection should be grouped correctly.
  • The bottom bar displays the correct status when downloading models.
  • Threads display the correct status for models
    - Start models
    - Model started successfully
    - Generate response
    - Stopping models
    - Models fail to start

Testing Script:

1. Model Selection Highlight for Recommended Models Based on User RAM

	•	Test: Verify that models are highlighted as “Recommended” based on the user’s available RAM.
	•	Steps:
	1.	Open the Model Selection dropdown.
	2.	Look for any models labeled with a warning about insufficient RAM or marked as “Recommended” based on your device’s memory.
	3.	Confirm if the recommendation matches your system specifications.
	•	Expected Behavior: Models that are suitable for your system RAM should be highlighted, and those exceeding the system’s capacity should show warnings (e.g., “Slow on your device”).

2. Thread Status for Models

	•	Test: Ensure that threads display the correct model status, including starting, stopping, or failing to start a model.
	•	Steps:
	1.	Start a conversation with a model in a new thread.
	2.	Change models mid-conversation by selecting a different model from the Model Selection dropdown.
	3.	Test starting, stopping, and switching models to check the status messages.
	•	Expected Behavior: The thread should show the following statuses correctly:
	•	“Starting Model…”
	•	“Model Started Successfully”
	•	“Stopping Model…”
	•	Any error messages for models failing to start or run.

3. Users Can Customize Thread Settings

  • Instructions set by the user are followed by the assistant in subsequent conversations. Changes to instructions are updated in real time and do not require a restart of the application or session.
  • Ability to reset instructions to default or clear them completely.
  • Adjust model parameters (e.g., Temperature, Top K, Top P) from the GUI and verify they are reflected in the chat behavior.
  • Check the maximum and minimum limits of adjustable parameters and how they affect the assistant's responses.
  • Changes can be saved and persisted between sessions.
  • Users can access and modify the model.yml file.
  • Changes made in model.yml are correctly applied to the chat session upon reload or restart.

Testing Script:

a. Temperature

	•	Purpose: Controls the randomness of the model’s responses.
	•	Test:
	•	Set temperature to 0.2 and ask a factual question:
Prompt: “What is the capital of France?”
Expected: “The capital of France is Paris.”
	•	Set temperature to 0.9 and ask a creative prompt:
Prompt: “What is the capital of France?”
Expected: A more varied, creative response. E.g, "The capital of France is actually Paris, not Rome. Rome is the capital of Italy."



b. Top P (Nucleus Sampling)

	•	Purpose: Controls the probability mass of tokens considered for responses.
	•	Test:
	•	Set Top P to 0.95 and ask:
Prompt: “What is artificial intelligence?”
Expected: A detailed and varied response.
	•	Set Top P to 0.5 and ask the same question.
Expected: A more concise, deterministic answer.

c. Stream

	•	Purpose: Enables streaming of tokens as they are generated.
	•	Test:
	•	Turn Stream ON and ask a long-form question:
Prompt: “Explain how solar panels convert sunlight into electricity.”
Expected: The response is streamed token by token.
	•	Turn Stream OFF and ask the same question.
Expected: The full response appears after it’s fully generated.

d. Max Tokens

	•	Purpose: Limits the maximum number of tokens the model can generate.
	•	Test:
	•	Set Max Tokens to 100 and ask a detailed question:
Prompt: “Can you explain the process of photosynthesis?”
Expected: A shorter, more concise response.
	•	Increase Max Tokens to 400 and ask the same question.
Expected: A more detailed, longer explanation.

e. Frequency Penalty

	•	Purpose: Discourages word repetition by applying penalties.
	•	Test:
	•	Set Frequency Penalty to 0 and ask:
Prompt: “Explain why repetition is important in learning.”
Expected: Some repetition may occur.
	•	Set Frequency Penalty to 1 and ask the same question.
Expected: Minimal or no repetition.

f. Presence Penalty

	•	Purpose: Encourages introducing new ideas into the response.
	•	Test:
	•	Set Presence Penalty to 0 and ask:
Prompt: “Describe a typical day in your life.”
Expected: Similar topics may repeat.
	•	Set Presence Penalty to 1 and ask the same question.
Expected: More varied content with fewer repeated ideas.

g. Model Settings (Prompt Template)

	•	Purpose: Customize the structure of the prompt given to the model.
	•	Test:
	•	Modify the Prompt Template with a system message:
Template:
 You are a friendly assistant. 
{prompt}
Prompt: “What is quantum computing?”
Expected: A friendly, concise answer following the system message.

h. Context Length

	•	Purpose: Controls how much conversation context the model retains.
	•	Test:
	•	Set Context Length to 128 and engage in a multi-turn conversation.
Expected: The model loses track of earlier parts of the conversation.
	•	Set Context Length to 4096 and repeat the conversation.
Expected: The model retains and references earlier parts more effectively.

i. GPU Layers

	•	Purpose: Controls how many layers of the model run on the GPU for faster processing.
	•	Test:
	•	Set GPU Layers to 1 and ask a complex question.
Expected: Slower response due to minimal GPU acceleration.
	•	Set GPU Layers to 29 and ask the same question.
Expected: Faster response with higher GPU utilization.

4. Users Can Click on a History Thread

  • Chat window displays the entire conversation from the selected history thread without any missing messages.
  • Historical threads reflect the exact state of the chat at that time, including settings.
  • Ability to delete or clean old threads.
  • Changing the title of the thread updates correctly.

Testing Script

1. Historical Thread Reflects Correct State

	•	Test: Confirm that historical threads reflect the exact state of the chat, including settings such as model choice, parameters, or system settings, as they were during the conversation.
	•	Steps:
	1.	Start a conversation using a specific model (e.g., Mistral 7B).
	2.	Adjust settings like temperature or tokens and save the conversation.
	3.	Open the saved conversation from history and verify if the settings match what was used at the time.
	•	Expected Behavior: The model, parameters, and settings should be exactly as they were when the conversation occurred.

2. Delete or Clean Threads

	•	Test: Use the option to delete or clean old threads from the history list.
	•	Steps:
	1.	Select an old thread from the sidebar.
	2.	Use the delete option (e.g., trash icon) to remove the thread.
	3.	Verify that the thread is removed from both the sidebar and the conversation history.
	•	Expected Behavior: The thread should be permanently deleted, and no residual data should be available after deletion.

3. Change Title of a Thread

	•	Test: Change the title of a conversation thread and ensure the title updates correctly.
	•	Steps:
	1.	Select a thread from the sidebar.
	2.	Use the rename option (if available) to modify the title of the thread.
	3.	Confirm that the new title is updated both in the sidebar and within the chat window.
	•	Expected Behavior: The new title should be reflected correctly, and the change should be applied without affecting the content of the thread.

C. Hub

1. Users Can Discover Recommended Models

  • Each model's recommendations are consistent with the user’s activity and preferences.
  • Search models and verify results/actions on the results.

2. Users Can Download Models Suitable for Their Devices

  • Model list should be in order: Local models > Remote models
  • Ensure that models are labeled with RAM requirements tags are displayed correctly based on the user's hardware.
  • Ensure each model has full information.
  • Check the download model functionality and validate if the cancel download feature works correctly.
  • Click Use button to use the model. Expect to jump to the thread and see the model in the dropdown model selector.

3. Users Can Import Models via a HuggingFace URL

  • Import via Hugging Face ID/full HuggingFace URL, and check the progress bar reflects the download process.
  • Test deep-link import. #2876
  • Users can use/remove the imported model.

Testing Script

	•	Test: Import a model using a Hugging Face URL.
	•	Example URL 1:

https://huggingface.co/hugging-quants/Llama-3.2-3B-Instruct-Q8_0-GGUF


	•	Example URL 2:

https://huggingface.co/city96/FLUX.1-schnell-gguf


	•	Expected Behavior: The model should begin downloading, and the progress bar should reflect the download process.
	•	Verify: Ensure the model appears in the list with the correct size and is marked as Inactive after the download completes.

4. Users Can Import New Models to the Hub

  • Ensure import works successfully via drag/drop or GGUF file upload.
  • Verify that the Move model binary file / Keep Original Files & Symlink options work correctly.
  • Users can add more info to the imported model (e.g., edit name, add information).
  • Ensure the new model updates after restarting the app.

5. Users can Integrate With a Remote Server

  • Users can click Use a remote model that they already set up in Hub

D. System Monitor

1. Users Can See Disk and RAM Utilization

  • Verify that the RAM and VRAM utilization graphs are accurately reported in real time.
  • Validate that the utilization percentages reflect the actual usage compared to the system's total available resources.
  • Ensure that the system monitors update dynamically as the models run and stop.

2. Users Can Start and Stop Models Based on System Health

  • Verify the Start/Stop action for a model, ensuring the system resource usage reflects this change.
  • Confirm that any changes in model status (start/stop) are logged or reported to the user for transparency.
  • Check the functionality of App log to ensure it opens the correct folder in the system file explorer.

Testing Script:

1. Users Can See Disk and RAM Utilization

a. Verify Real-Time RAM and VRAM Utilization

   •	Test: Run a model and observe the system monitor to ensure that RAM and VRAM utilization are accurately reported in real time.
   •	Steps:
   1.	Start a model from the My Models list.
   2.	Check the System Monitor section at the bottom of the app.
   3.	Observe the CPU and Memory usage graphs.
   •	Expected Behavior: The RAM and VRAM utilization should be updated in real-time, reflecting the active model’s resource usage.

b. Validate Utilization Percentages

   •	Test: Ensure the percentages displayed for RAM and VRAM usage reflect the actual usage compared to the system’s total available resources.
   •	Steps:
   1.	Open your system’s resource monitor (e.g., Activity Monitor on macOS or Task Manager on Windows).
   2.	Compare the values displayed in the app’s system monitor with the system’s resource monitor.
   •	Expected Behavior: The percentage of RAM and VRAM used in the app should closely match the usage reported by the system’s built-in resource monitor.

c. Monitor Updates Dynamically

   •	Test: Start and stop a model and verify that the system monitor updates dynamically as the model runs and stops.
   •	Steps:
   1.	Start a model from the My Models list and observe the system monitor.
   2.	Stop the model and check if the resource usage returns to the idle state.
   •	Expected Behavior: The resource graphs (CPU, Memory) should dynamically update when models are started or stopped, accurately reflecting the change in system load.

2. Users Can Start and Stop Models Based on System Health

a. Verify Start/Stop Action for Models

   •	Test: Start and stop a model, ensuring the system monitor reflects this action accurately.
   •	Steps:
   1.	Click Start to activate a model and observe the system monitor for any changes in CPU and Memory usage.
   2.	Click Stop to deactivate the model and check if resource usage drops.
   •	Expected Behavior: Starting the model should increase resource usage, while stopping the model should return the system to idle or lower resource consumption.

b. Log Model Status Changes

   •	Test: Confirm that any changes in the model’s status (start/stop) are logged or reported to the user for transparency.
   •	Steps:
   1.	Start and stop a model while observing the App Log.
   2.	Check if there are entries for when the model starts or stops.
   •	Expected Behavior: The app should log model status changes in the App Log, clearly indicating when a model is started or stopped.

c. App Log Functionality

   •	Test: Use the App Log button to open the log folder and ensure the app logs are accessible.
   •	Steps:
   1.	Click on the App Log button in the System Monitor section.
   2.	Verify that it opens the correct folder in the system file explorer.
   3.	Check the logs for any relevant information on model performance or resource usage.
   •	Expected Behavior: The log folder should open correctly, and the logs should contain entries related to model performance and system health.

E. Local API Server

  • Verify usage of the API Reference (Swagger) for sending/receiving requests.
    • Use default server option
    • Configure and use custom server options
  • Ensure logs are correctly captured.
  • Test the server with different configurations (e.g., model settings).
  • Verify functionality of Open Logs& Clear Logs works normally.
  • Ensure that model-related functions are disabled when the local server is running.

Testing Script

1. Verify Usage of the API Reference (Swagger) for Sending/Receiving Requests

a. Use Default Server Option

	•	Test: Start the local server using the default configuration.
	•	Steps:
	1.	Open the app and navigate to the Local API Server section.
	2.	Click Start Server using the default options (e.g., 127.0.0.1:1337).
	3.	Once the server is running, open the API reference URL in a browser:
URL: http://localhost:1337/static/index.html
	4.	Use the API Reference to send a sample request (e.g., list available models).
	•	Expected Behavior: The server should start successfully, and the API Reference (Swagger) should be accessible in the browser. Requests should be processed, and valid responses should be returned.

b. Configure and Use Custom Server Options

	•	Test: Change the server options and verify the functionality.
	•	Steps:
	1.	Modify the server configuration (e.g., change the port to 1338 or adjust the API prefix).
	2.	Click Start Server and verify the server starts with the new configuration.
	3.	Open the updated API reference in a browser:
URL: http://localhost:1338/static/index.html
	4.	Send a request (e.g., retrieve assistant details) and check if the request is processed correctly.
	•	Expected Behavior: The server should start with the new configuration, and the API reference should still be accessible with the modified URL.

2. Test the Server with Different Configurations

a. Model Settings

	•	Test: Run the server with different model settings to ensure proper log capture.
	•	Steps:
	1.	Start the local server.
	2.	Open the Model section and adjust the inference parameters (e.g., change the temperature or token limit).
	3.	Send a request via the API (e.g., generate a response using the adjusted model).
	•	Expected Behavior: The server should process the request with the updated model parameters, and logs should reflect the model’s behavior with the new settings.

3. Ensure Model-Related Functions Are Disabled When the Local Server Is Running

a. Model Functionality

	•	Test: Check that model-related functions (e.g., starting/stopping models from the UI) are disabled while the local server is running.
	•	Steps:
	1.	Start the local server and navigate to the My Models section.
	2.	Try to start or stop a model.
	•	Expected Behavior: Model-related actions (start/stop) should be disabled, and the user should see a notification or indicator that models cannot be managed while the server is running.

F. Settings

1. My Models

  • Check that downloaded models are shown in My Models page & assigned to provider groups correctly.
  • Each model’s name, version, and size should be displayed accurately.
  • Check the start / stop / delete buttons to confirm they perform the expected actions.
  • Check if starting another model stops the previously running model entirely.
  • Check that when deleting a model, it will delete all the model's files from the user's computer.

Testing Script

1. Test Start/Stop/Delete Buttons

	•	Test: Verify that the Start, Stop, and Delete buttons function as expected for each model.
	•	Steps:
	1.	Click the three-dot menu for any model in the list.
	2.	Use the Start button to load the model and confirm it successfully starts.
	3.	After starting the model, click the Stop button to unload it and ensure the process completes.
	4.	Test the Delete button and confirm that the model is deleted from both the list and your system storage.
	•	Expected Behavior: The model should start, stop, and delete as expected without any errors.

2. Verify Starting Another Model Stops the Previous Model

	•	Test: Ensure that when you start a different model, the previously running model is stopped entirely.
	•	Steps:
	1.	Start a model from the My Models list.
	2.	Once the model is running, select a different model and start it.
	3.	Observe if the first model stops running before the second model starts.
	•	Expected Behavior: Starting a new model should automatically stop the previously running model without errors.

3. Check Deletion of Model Files

	•	Test: Verify that deleting a model removes all associated files from the user’s computer.
	•	Steps:
	1.	Start by deleting a model from the My Models list using the Delete button.
	2.	After deletion, check the local storage directory (e.g., the model folder location) to ensure that all model files have been removed.
	•	Expected Behavior: The model and all related files should be completely removed from the user’s local storage after deletion.

2. Appearance

  • Test the Light, Dark, and System theme settings to ensure they are functioning as expected.
  • Confirm that the application saves the theme preference and persists it across sessions.
  • Validate that all elements of the UI are compatible with the theme changes and maintain legibility and contrast.
  • Desktop app should have shadow.
  • Ensure Spell Check works.

Testing Script

1. Color Theme Selection

	•	Test: Select different color themes from the dropdown (e.g., Joi Light, Dark, etc.).
	•	Expected Behavior: The interface should immediately update to reflect the selected color theme.
	•	Verify: Ensure the theme selection persists across app restarts.

2. Interface Theme (Solid vs Translucent)

	•	Test: Toggle between Solid and Translucent options under the Interface Theme.
	•	Expected Behavior: The background should change accordingly. Solid should display a standard opaque background, while Translucent should make the background semi-transparent.
	•	Verify: Ensure the change is applied across all sections of the interface (e.g., sidebar, chat window).

3. Spell Check

	•	Test: Toggle the Spell Check option ON/OFF.
	•	Expected Behavior: When enabled, spell check should highlight misspelled words in the chat or input fields.
	•	Verify: Misspelled words should appear underlined or highlighted when Spell Check is ON. No highlighting should occur when it’s OFF.

3. Keyboard Shorcuts

  • Test all shortcut keys (Settings > Keyboard Shortcuts) to confirm they function correctly.
  • Ensure that all information about shortcut are displayed correctly.

4. Advanced Settings

Experimental Mode

  • Test the Experimental Mode toggle to ensure it works as expected.
  • When enabled, experimental features should be activated and available across the application:
    • Tools (Retrieval,...)
    • Quick Ask
    • Vulkan (on Window & Linux)

Data Folder Relocation

  • Ensure the Jan Data Folder option opens the correct folder in the system.
  • Ensure relocating the Jan Data Folder works.
  • Ensure the app functions correctly after the data folder has been relocated.

2. Proxy and SSL Certificate

  • Test downloading a model using HTTP Proxy and confirm it works according to guidelines.
  • When Ignore SSL Certificates is enabled, the app should allow self-signed or unverified certificates, which may be required for certain proxies.

3. Logs and Data Management

  • Confirm that logs older than 7 days or exceeding 1MB are cleared upon starting the app.
  • Test that Clear Logs works.
  • Validate the Reset to Factory Settings option works correctly:
    • Retain the current app data location when resetting.
    • Reset the current app data location entirely.

Testing Script

1. Experimental Mode

	•	Test: Toggle the Experimental Mode setting ON/OFF.
	•	Expected Behavior: When enabled, experimental features should be activated and available across the application.
	•	Verify: Ensure that changes are applied immediately without requiring a restart.

2. Jan Data Folder

	•	Test: Click the Jan Data Folder path and attempt to change the folder location for storing messages and user data.
	•	Expected Behavior: A dialog box should open, allowing the user to select a new directory. Once changed, the data should be stored in the newly selected folder.
	•	Verify: Ensure that the new folder location is reflected in the application and persists across restarts.

3. HTTPS Proxy

	•	Test: Enter valid proxy credentials in the HTTPS Proxy field and leave it blank to test both cases.
	•	Expected Behavior: When valid credentials are entered, the app should route network traffic through the specified proxy.
	•	Verify: Ensure that when left blank, the app reverts to the default network configuration.

4. Ignore SSL Certificates

	•	Test: Toggle the Ignore SSL Certificates option ON/OFF.
	•	Expected Behavior: When enabled, the app should allow self-signed or unverified certificates, which may be required for certain proxies.
	•	Verify: Ensure proper handling of certificates based on the setting.

5. Clear Logs

	•	Test: Click the Clear button to delete all logs from the application.
	•	Expected Behavior: All log files should be removed, and the log directory should be empty.
	•	Verify: Reopen the application and confirm that no old logs are present.

6. Reset to Factory Settings

	•	Test: Click the Reset button to restore the app to its initial state.
	•	Expected Behavior: All models, chat history, and custom settings should be erased, and the app should return to its default state.
	•	Verify: Ensure the reset is irreversible and no previous data remains after the reset is complete.

This script covers the main functionalities and settings on the Advanced Settings page, ensuring that features like proxy, data folder relocation, and factory reset work as expected. Let me know if you need any further adjustments!

4. Extensions

1. Install and Enable Extensions

  • Validate the Install Extensions process by selecting and installing a plugin file.
  • Enable/disable extensions and confirm that the UI reflects these changes.

2. Extension Group Management

1. Model Providers

Test each model provider extension to ensure it updates properly and maintains functionality:

  • Anthropic (v1.0.2):

    • Confirm that Anthropic API key works.
  • Cohere (v1.0.0):

    • Confirm that Cohere API key works.
  • Groq (v1.0.1):

    • Confirm that Grog API key works.
  • Martian (v1.0.1):

    • Confirm that Martian API key works.
  • Mistral (v1.0.1):

    • Confirm that Mistral API key works.
  • TensorRT-LLM (v0.0.3):

    • Ensure GPU acceleration is functional and outputs expected performance.
  • NVIDIA NIM (v1.0.1):

    • Confirm that NVIDIA API key works.
  • OpenAI (v1.0.2):

    • Confirm that OpenAI API key works.
  • OpenRouter (v1.0.0):

    • Confirm that OpenRouter API key works.
  • Triton-TRT-LLM (v1.0.0):

    • Confirm that Triton-TRT-LLM API key works.

2. Core Extensions

  • Model Management (v1.0.33):

    • Ensure that Hugging Face Access Token works.
  • System Monitoring (v1.0.10):

    • Ensure that Enable App Logs works.
    • Ensure that Log Cleaning Interval works.
@imtuyethan imtuyethan added type: bug Something isn't working QA For tracking QA processes and initiatives and removed type: bug Something isn't working labels Oct 30, 2024
@imtuyethan imtuyethan added this to the v0.5.8 milestone Oct 30, 2024
@github-project-automation github-project-automation bot moved this to Investigating in Jan & Cortex Oct 30, 2024
@imtuyethan imtuyethan self-assigned this Oct 30, 2024
@imtuyethan imtuyethan moved this from Investigating to Scheduled in Jan & Cortex Oct 30, 2024
@imtuyethan
Copy link
Contributor Author

Bugs from manual builds: #3931

@imtuyethan imtuyethan moved this from Scheduled to In Progress in Jan & Cortex Nov 4, 2024
@imtuyethan
Copy link
Contributor Author

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@urmauur We should not allow horizontal scrolling in chat:

Screen.Recording.2024-11-05.at.1.55.22.PM.mov

@imtuyethan
Copy link
Contributor Author

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@urmauur Weird background:

Screenshot 2024-11-05 at 1 58 14 PM
Screen.Recording.2024-11-05.at.1.59.48.PM.mov

@imtuyethan
Copy link
Contributor Author

118 (test-windows-app-1-activated)
OS: Windows 11 Pro (Version 23H2, build: 22631.4037)

  • CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
  • RAM: 16.0 GB
  • System type: 64-bit operating system, x64-based processor

@louis-jan Missing model ID column in My Models:

v0.5.7:
Screenshot 2024-11-05 at 2 21 37 PM

v0.5.7-700
Screenshot 2024-11-05 at 2 26 26 PM

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@louis-jan This is what happened when after I tried factory reset:

Screen.Recording.2024-11-05.at.3.07.40.PM.mov

After factory reset, i can't download any models:

Screen.Recording.2024-11-05.at.3.12.59.PM.mov

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

107 (test-ubuntu-app-cpu-2)
OS: Ubuntu 22.04.4 LTS (64-bit)
CPU: Intel Xeon(R) Silver 4214R @ 2.40GHz (16 cores)
RAM: 256.0 GiB1234
GPU: llvmpipe (LLVM 15.0.7, 256 bits)

@louis-jan Similar to the issue reported here #3931, we need to add fake downloader & show 0% for other models:

Screenshot 2024-11-05 at 3 15 22 PM

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@louis-jan Models failed to start after i: did factory reset to remove cortex.db > updated Nightly Build version 0.5.7-699 > then updated to 0.5.7-700

This is the model list i have after i updated to Nightly Build version 0.5.7-699(i downloaded all of them again as i did factory reset):

Screenshot 2024-11-05 at 3 27 31 PM

Then I updated to 0.5.7-700, i can't start any models in this list:

Screen.Recording.2024-11-05.at.3.29.03.PM.mov

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

118 (test-windows-app-1-activated)
OS: Windows 11 Pro (Version 23H2, build: 22631.4037)

CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
RAM: 16.0 GB
System type: 64-bit operating system, x64-based processor

@louis-jan I can't start any models on windows (updating from stable build 0.5.7 to this build)

Screen.Recording.2024-11-05.at.3.43.20.PM.mov

App log:
Screenshot 2024-11-05 at 3 45 48 PM

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

107 (test-ubuntu-app-cpu-2)
OS: Ubuntu 22.04.4 LTS (64-bit)
CPU: Intel Xeon(R) Silver 4214R @ 2.40GHz (16 cores)
RAM: 256.0 GiB1234
GPU: llvmpipe (LLVM 15.0.7, 256 bits)

@louis-jan Model settings on UI doesn't match what's written in model.json files

Llama 3.2 3B Instruct Q8

Screenshot 2024-11-05 at 4 09 24 PM

Screenshot 2024-11-05 at 4 11 13 PM

Llama 3.2 1B Instruct Q8

Screenshot 2024-11-05 at 4 09 59 PM

Screenshot 2024-11-05 at 3 53 13 PM

@github-project-automation github-project-automation bot moved this from In Progress to Review + QA in Jan & Cortex Nov 5, 2024
@imtuyethan imtuyethan moved this from Review + QA to In Progress in Jan & Cortex Nov 5, 2024
@imtuyethan imtuyethan reopened this Nov 5, 2024
@urmauur
Copy link
Member

urmauur commented Nov 5, 2024

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@urmauur We should not allow horizontal scrolling in chat:

Screen.Recording.2024-11-05.at.1.55.22.PM.mov

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

@urmauur Weird background:

Screenshot 2024-11-05 at 1 58 14 PM Screen.Recording.2024-11-05.at.1.59.48.PM.mov

Both issues are fixed in this PR
#3952

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 5, 2024

118 (test-windows-app-1-activated)
OS: Windows 11 Pro (Version 23H2, build: 22631.4037)

CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
RAM: 16.0 GB
System type: 64-bit operating system, x64-based processor

@louis-jan Model downloading stuck at 0%:

Screen.Recording.2024-11-05.at.10.58.16.PM.mov

Also cannot cancel download:

Screen.Recording.2024-11-05.at.11.02.41.PM.mov

@imtuyethan
Copy link
Contributor Author

@urmauur Tiny issue: weird question mark

Screenshot 2024-11-05 at 11 35 40 PM

@urmauur
Copy link
Member

urmauur commented Nov 5, 2024

@urmauur Tiny issue: weird question mark

Screenshot 2024-11-05 at 11 35 40 PM

it's should Are you sure you want to cancel the download of {modelId}? seems u missing modelId

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 6, 2024

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

0.5.7-710

@louis-jan Model downloading still stuck at 0%:

Screen.Recording.2024-11-06.at.4.22.06.PM.mov

@imtuyethan
Copy link
Contributor Author

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB


@urmauur

  • Alignment is off compared to original design
  • When i clicked download, the size disappeared, causing the spacing to be reduced
Screen.Recording.2024-11-06.at.4.39.12.PM.mov
Screenshot 2024-11-06 at 4 41 40 PM

Original design

Design: https://www.figma.com/design/DYfpMhf8qiSReKvYooBgDV/Jan-App-(3rd-version)?node-id=4731-80372&t=j7NInmo300ZWjacQ-4
Screenshot 2024-11-06 at 4 42 12 PM

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 6, 2024

@louis-jan

0.5.7-712

Model lists are correct on Mac, Window, Linux.

However, i can't start models on Window:

108 (windows10-test-app)
OS: Windows 10 Pro (Version 22H2, build: 19045.4780)
CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
RAM: 16.0 GB
System type: 64-bit operating system, x64-based processor

Screen.Recording.2024-11-06.at.9.23.30.PM.mov

App log:

Screenshot 2024-11-06 at 9 26 02 PM

@imtuyethan
Copy link
Contributor Author

@louis-jan

0.5.7-712

Similar to the issue i posted above, I have encountered this issue 5 times already: Model (Llama 3.2 1 Instruct Q8) always responds weird on the first message (or threads), when i start a new thread, it responds normally:

Operating System: MacOS Sonoma 14.2
Processor: Apple M2
RAM: 16GB

Screenshot 2024-11-06 at 9 43 28 PM Screenshot 2024-11-06 at 9 43 34 PM

This is on Linux

117 (test-ubuntu-2404-1)

Screenshot 2024-11-06 at 9 45 19 PM
Screenshot 2024-11-06 at 9 55 02 PM

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 6, 2024

@louis-jan

0.5.7-712

Liked we discussed, this issue is about wrong model settings when switching between models too fast > causing weird response. It could be because model cached in Cortex, needs further investigation.

IMG_0127.mov
Screenshot 2024-11-06 at 10 48 15 PM

@imtuyethan
Copy link
Contributor Author

@urmauur

0.5.7-712

I'm having this background issue again:

Screen.Recording.2024-11-06.at.11.42.02.PM.mov

@imtuyethan
Copy link
Contributor Author

@louis-jan I tried 0.5.7-712 on VM 114 (Window), updating app took a bit long (3 mins) but the models work perfectly fine. Looks like some issues with Window only happen on VM 108 & VM 118 (which i used to install the previous feature builds), might be some dangling issue from these builds.

@imtuyethan
Copy link
Contributor Author

0.5.7-712

@louis-jan Some weird behavior on VM 118:

VM 118
OS: Windows 11 Pro (Version 23H2, build: 22631.4037)
CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
RAM: 16.0 GB

  • Tried installing 0.5.7-712 successfully on the 3rd time
  • Model lists were different

App update issue

  • I already had 0.5.7 version
  • I updated to 0.5.7-712
  • Got the issue
Screen.Recording.2024-11-07.at.12.03.35.AM.mov
Screen.Recording.2024-11-07.at.12.03.35.AM.mov

Model list issue

It looked like these model were renamed differently:

0.5.7

VM 118

0.5.7-712

Screenshot 2024-11-07 at 12 06 09 AM

@imtuyethan
Copy link
Contributor Author

0.5.7-712

@urmauur

When i click Edit Message the mouse indicator should be right next to the last letter:

Screen.Recording.2024-11-07.at.4.41.36.PM.mov

@imtuyethan
Copy link
Contributor Author

0.5.7-712

@urmauur Copy function here doesn't work:

Screen.Recording.2024-11-07.at.8.41.58.PM.mov

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 7, 2024

0.5.7-712
This issue is not urgent, we don't have to deliver in this release.

@louis-jan Temperature settings doesn't work on remote APIs.

When the temperature is high, the response is supposed to be more creative.

Model Llama 3.2 1B

This model respond more creatively when i adjusted the temperature:

Screen.Recording.2024-11-07.at.8.47.16.PM.mov

Model Claude 3 Haiku

Nothing changes:

Screen.Recording.2024-11-07.at.8.48.07.PM.mov

Model GPT 4 Turbo

Nothing changes:

Screen.Recording.2024-11-07.at.8.47.49.PM.mov

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 7, 2024

0.5.7-712

@louis-jan The entire Gemma model family is dead:
Should I scope this in janhq/models#46? Although it seems unrelated, Gemma can still run in previous versions.

Screen.Recording.2024-11-07.at.8.54.26.PM.mov

App logs
app.log

Cortex logs
cortex.log

@imtuyethan
Copy link
Contributor Author

Missing cortex logs

@imtuyethan
Copy link
Contributor Author

Quick note: Needs further investigations on model running slow issue

@imtuyethan
Copy link
Contributor Author

imtuyethan commented Nov 8, 2024

@urmauur Tiny issue for me

When i enter a new line, the cursor is gone:

Screen.Recording.2024-11-08.at.12.39.36.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA For tracking QA processes and initiatives
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants