Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions ## GitHub Copilot Chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## GitHub Copilot Chat

This file previously contained a local diagnostic/support log generated from a development environment.

The detailed log has been removed from version control because it included environment-specific and potentially sensitive information such as account identifiers, system configuration, and network diagnostics.

## Documentation

For troubleshooting GitHub Copilot connectivity in corporate networks, see [Troubleshooting firewall settings for GitHub Copilot](https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-firewall-settings-for-github-copilot).
9 changes: 9 additions & 0 deletions .azureml/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: auto-training-env
channels:
- defaults
- conda-forge
dependencies:
- python=3.11
- pip
- pip:
- -r requirements.txt
1 change: 1 addition & 0 deletions .azureml/job_dummy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
command: echo test
18 changes: 18 additions & 0 deletions .azureml/job_multi_20251125T012515Z.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
command: python scripts/automated_training_pipeline.py --models phi,qwen --quick --min-train-samples 50 --ranking-metric perplexity_improvement --generate-only
code: .
display_name: automated-training-multi_20251125T012515Z
experiment_name: lora-autotrain
compute: azureml:cpu-cluster
environment:
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04
conda_file: environment.yml
name: auto-training-env
resources:
instance_count: 1
identity:
type: managed
description: Auto-generated Azure ML job spec for multi-model LoRA training wrapper
tags:
generator: automated_training_pipeline
models: phi,qwen
18 changes: 18 additions & 0 deletions .azureml/job_multi_20251125T012559Z.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
command: python scripts/automated_training_pipeline.py --models phi --quick --min-train-samples 50 --ranking-metric perplexity_improvement --generate-only
code: .
display_name: automated-training-multi_20251125T012559Z
experiment_name: lora-autotrain
compute: azureml:cpu-cluster
environment:
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04
conda_file: environment.yml
name: auto-training-env
resources:
instance_count: 1
identity:
type: managed
description: Auto-generated Azure ML job spec for multi-model LoRA training wrapper
tags:
generator: automated_training_pipeline
models: phi
18 changes: 18 additions & 0 deletions .azureml/job_multi_20251125T055919Z.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
command: python scripts/automated_training_pipeline.py --models phi --quick --min-train-samples 50 --ranking-metric perplexity_improvement --generate-only
code: .
display_name: automated-training-multi_20251125T055919Z
experiment_name: lora-autotrain
compute: azureml:cpu-cluster
environment:
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04
conda_file: environment.yml
name: auto-training-env
resources:
instance_count: 1
identity:
type: managed
description: Auto-generated Azure ML job spec for multi-model LoRA training wrapper
tags:
generator: automated_training_pipeline
models: phi
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Aria Dev Container",
"image": "mcr.microsoft.com/devcontainers/python:2-3.14-trixie",
"features": {},
"postCreateCommand": "python -m pip install --upgrade pip && if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"ms-windows-ai-studio.windows-ai-studio",
"GitHub.copilot-chat"
]
}
}
}
51 changes: 51 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Build artifacts
bin/
obj/

# IDE and editor files
.vs/
.vscode/
*.user
*.suo
.foundry/

# Source control
.git/

# Documentation
README.md

# Ignore files
.gitignore
.dockerignore

# Logs
*.log

# Temporary files
*.tmp
*.temp

# OS files
.DS_Store
Thumbs.db

# Package manager directories
node_modules/
packages/

# Test results
TestResults/
*.trx

# Coverage reports
coverage/
*.coverage
*.coveragexml

# Local development config
appsettings.Development.json
.env

.venv/
__pycache__/
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Example environment variables for local development.
# Copy to .env or use local.settings.json for Azure Functions and fill in your keys.

# Azure Speech (for /api/tts)
AZURE_SPEECH_KEY=
AZURE_SPEECH_REGION=

# Azure/OpenAI or OpenAI keys (optional)
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT=
OPENAI_API_KEY=

# Allow a local TTS fallback on the server when AZURE_SPEECH_KEY/REGION are not set
# Set to 'true' to enable (requires installing pyttsx3 or gTTS in the functions environment)
QAI_ENABLE_LOCAL_TTS=true
3 changes: 3 additions & 0 deletions .foundry/.deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"projectId": "e527e3e6-1859-4111-ac51-ae9d8436f0ce"
}
9 changes: 9 additions & 0 deletions .funcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git*
.vscode
__azurite_db*__.json
__blobstorage__
__queuestorage__
local.settings.json
test
.venv
functions/
42 changes: 42 additions & 0 deletions .githooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Test Automation Setup

This directory contains pre-commit hooks for automated testing.

## Installation

Enable these hooks with:

```powershell
git config core.hooksPath .githooks
```

## Available Hooks

### pre-commit (bash)

Check failure on line 15 in .githooks/README.md

View workflow job for this annotation

GitHub Actions / markdownlint

Headings should be surrounded by blank lines

.githooks/README.md:15 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "### pre-commit (bash)"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
Runs fast unit tests before allowing commits. Use on Linux/Mac or Windows with Git Bash.

Check failure on line 16 in .githooks/README.md

View workflow job for this annotation

GitHub Actions / markdownlint

Line length

.githooks/README.md:16:81 MD013/line-length Line length [Expected: 80; Actual: 88] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md013.md

### pre-commit.ps1 (PowerShell)

Check failure on line 18 in .githooks/README.md

View workflow job for this annotation

GitHub Actions / markdownlint

Headings should be surrounded by blank lines

.githooks/README.md:18 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "### pre-commit.ps1 (PowerShell)"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
PowerShell version for Windows users. Configure with:

```powershell
# Add to .git/config or run:
git config core.hooksPath .githooks
```

## Bypass (emergency only)

```bash
git commit --no-verify
```

## What Gets Tested

Pre-commit runs:
- Unit tests only (fast, < 30s)

Check failure on line 35 in .githooks/README.md

View workflow job for this annotation

GitHub Actions / markdownlint

Lists should be surrounded by blank lines

.githooks/README.md:35 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- Unit tests only (fast, < 30s..."] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md032.md
- Excludes slow/integration tests
- Excludes Azure-dependent tests

For full testing:
```bash

Check failure on line 40 in .githooks/README.md

View workflow job for this annotation

GitHub Actions / markdownlint

Fenced code blocks should be surrounded by blank lines

.githooks/README.md:40 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md031.md
python scripts/test_runner.py --all --coverage
```
32 changes: 32 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Pre-commit hook - Run fast tests before allowing commit
#
# Installation:
# git config core.hooksPath .githooks
#
# To bypass (for emergency commits):
# git commit --no-verify

set -e

echo "🧪 Running pre-commit tests..."

# Run fast unit tests only (skip slow/integration)
# Temporarily disable set -e so we can capture the exit code and print guidance
set +e
python scripts/test_runner.py --unit --verbose 0
TEST_EXIT_CODE=$?
set -e

if [ $TEST_EXIT_CODE -eq 0 ]; then
echo "✅ Tests passed - proceeding with commit"
exit 0
else
echo "❌ Tests failed - commit blocked"
echo ""
echo "To fix:"
echo " 1. Review test failures above"
echo " 2. Fix the issues and try again"
echo " 3. Or bypass with: git commit --no-verify (not recommended)"
exit 1
fi
Comment on lines +10 to +32

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set -e causes the script to exit immediately when the test command fails, so the failure-message branch never runs (and the $? check is effectively dead code in failure cases). Capture the test exit code (or temporarily disable -e around the test run) so the hook can print the intended guidance before exiting non-zero.

Copilot uses AI. Check for mistakes.
25 changes: 25 additions & 0 deletions .githooks/pre-commit.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Pre-commit hook - Run fast tests before allowing commit
#
# Installation:
# git config core.hooksPath .githooks
#
# To bypass (for emergency commits):
# git commit --no-verify

Write-Host "🧪 Running pre-commit tests..." -ForegroundColor Cyan

# Run fast unit tests only (skip slow/integration)
python scripts/test_runner.py --unit --verbose 0

if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Tests passed - proceeding with commit" -ForegroundColor Green
exit 0
} else {
Write-Host "❌ Tests failed - commit blocked" -ForegroundColor Red
Write-Host ""
Write-Host "To fix:"
Write-Host " 1. Review test failures above"
Write-Host " 2. Fix the issues and try again"
Write-Host " 3. Or bypass with: git commit --no-verify (not recommended)"
exit 1
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default owners for the repository
* @Bryan-Roe
Loading
Loading