-
-
Notifications
You must be signed in to change notification settings - Fork 2
restore: recover all files wiped by empty-tree commit #98
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
Changes from all commits
551a8cb
c3e3797
8329211
b46bdfe
eab9314
16570d0
5361ec1
d27f794
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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). |
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| command: echo test |
| 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 |
| 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 |
| 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 |
| 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" | ||
| ] | ||
| } | ||
| } | ||
| } |
| 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__/ |
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "projectId": "e527e3e6-1859-4111-ac51-ae9d8436f0ce" | ||
| } |
| 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/ |
| 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
|
||
| 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
|
||
|
|
||
| ### pre-commit.ps1 (PowerShell) | ||
|
Check failure on line 18 in .githooks/README.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
|
||
| - Excludes slow/integration tests | ||
| - Excludes Azure-dependent tests | ||
|
|
||
| For full testing: | ||
| ```bash | ||
|
Check failure on line 40 in .githooks/README.md
|
||
| python scripts/test_runner.py --all --coverage | ||
| ``` | ||
| 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 | ||
| 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 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Default owners for the repository | ||
| * @Bryan-Roe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set -ecauses 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-earound the test run) so the hook can print the intended guidance before exiting non-zero.