Skip to content

Commit 7a58fe7

Browse files
committed
Merge branch 'main' into pe/required-tool-tests
2 parents 8e9f104 + 10861f2 commit 7a58fe7

File tree

852 files changed

+41981
-33545
lines changed

Some content is hidden

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

852 files changed

+41981
-33545
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
globs: ["gui/**/*", "core/**/*"]
3+
description: Provides test running instructions for GUI and core folders
4+
alwaysApply: false
5+
---
6+
7+
When working with test files, use the following commands to run tests:
8+
9+
GUI folder tests:
10+
11+
- Run all tests: `cd gui && npm test`
12+
13+
Core folder tests:
14+
15+
- Run Jest tests: `cd core && npm test`
16+
- Run Vitest tests: `cd core && npm run vitest`
17+
18+
Test file patterns:
19+
20+
- GUI: _.test.ts or_.test.tsx files use Vitest
21+
- Core: _.test.ts files use Jest,_.vitest.ts files use Vitest
22+
23+
Best practices:
24+
25+
- We are transitioning to vitest, so use that when creating new tests
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
globs: "**/*.{ts,tsx}"
3+
alwaysApply: false
4+
---
5+
6+
Use enums instead of simple string unions when possible in TypeScript code

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
- [] The relevant docs, if any, have been updated or created
99
- [] The relevant tests, if any, have been updated or created
1010

11-
## Screenshots
11+
## Screen recording or screenshot
1212

13-
[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]
13+
[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See [this PR](https://github.com/continuedev/continue/pull/6455) as a good example. ]
1414

1515
## Tests
1616

.github/workflows/cla.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
with:
2626
path-to-signatures: "signatures/version1/cla.json"
27-
path-to-document: "https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md"
27+
path-to-document: "https://github.com/continuedev/continue/blob/main/CLA.md"
2828
branch: cla-signatures
2929
# Bots and CLAs signed outside of GitHub
3030
allowlist: dependabot[bot],fbricon,panyamkeerthana,Jazzcort,owtaylor,halfline

.github/workflows/compliance.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
uses: wagoid/commitlint-github-action@v6
3232
with:
3333
configFile: .commitlintrc.warning.json
34+
# Only check the last commit instead of all commits in the PR
35+
commitDepth: 1
3436
continue-on-error: true
3537

3638
- name: Add commit message guidance comment
@@ -57,7 +59,7 @@ jobs:
5759
body: [
5860
"## ⚠️ Conventional Commit Format",
5961
"",
60-
"Your commit messages don't follow the conventional commit format, but **this won't block your PR from being merged**. We recommend downloading [this extension](https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits) if you are using VS Code.",
62+
"Your latest commit message doesn't follow the conventional commit format, but **this won't block your PR from being merged**. We recommend downloading [this extension](https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits) if you are using VS Code.",
6163
"",
6264
"### Expected Format:",
6365
"```",

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docs Check
2+
3+
on:
4+
push:
5+
paths:
6+
- 'docs2/**'
7+
pull_request:
8+
paths:
9+
- 'docs2/**'
10+
11+
jobs:
12+
check-broken-links:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '18'
23+
cache: 'npm'
24+
cache-dependency-path: docs2/package-lock.json
25+
26+
- name: Install dependencies
27+
working-directory: ./docs2
28+
run: npm ci
29+
30+
- name: Check for broken links
31+
working-directory: ./docs2
32+
run: npx mintlify broken-links

.github/workflows/metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
echo "metrics_content=$content" >> "$GITHUB_OUTPUT"
5151
5252
- name: Post a message in a channel
53-
uses: slackapi/[email protected].0
53+
uses: slackapi/[email protected].1
5454
with:
5555
webhook: ${{ secrets.ISSUE_PR_METRICS_SLACK_WEBHOOK_URL }}
5656
webhook-type: incoming-webhook

.github/workflows/pr_checks.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,43 @@ jobs:
572572
cd packages/config-yaml
573573
npm test
574574
575+
openai-adapters-tests:
576+
needs: install-openai-adapters
577+
runs-on: ubuntu-latest
578+
steps:
579+
- uses: actions/checkout@v4
580+
581+
- uses: actions/setup-node@v4
582+
with:
583+
node-version-file: ".nvmrc"
584+
585+
- uses: actions/cache@v4
586+
with:
587+
path: node_modules
588+
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
589+
590+
- uses: actions/cache@v4
591+
id: openai-adapters-cache
592+
with:
593+
path: packages/openai-adapters/node_modules
594+
key: ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
595+
596+
- name: Run openai-adapters tests
597+
run: |
598+
cd packages/openai-adapters
599+
npm test
600+
env:
601+
IGNORE_API_KEY_TESTS: ${{ github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]' }}
602+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
603+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
604+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
605+
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
606+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
607+
AZURE_FOUNDRY_CODESTRAL_API_KEY: ${{ secrets.AZURE_FOUNDRY_CODESTRAL_API_KEY }}
608+
AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY: ${{ secrets.AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY }}
609+
AZURE_OPENAI_GPT41_API_KEY: ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }}
610+
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}
611+
575612
vscode-get-test-file-matrix:
576613
runs-on: ubuntu-latest
577614
needs: [install-root, install-vscode, install-config-yaml]
@@ -613,6 +650,9 @@ jobs:
613650
echo "test_file_matrix<<EOF" >> $GITHUB_OUTPUT
614651
echo "$FILES" >> $GITHUB_OUTPUT
615652
echo "EOF" >> $GITHUB_OUTPUT
653+
env:
654+
# https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333
655+
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
616656

617657
- name: Debug Outputs
618658
run: |
@@ -1068,6 +1108,7 @@ jobs:
10681108
- config-yaml-checks
10691109
- install-config-yaml
10701110
- install-openai-adapters
1111+
- openai-adapters-tests
10711112

10721113
steps:
10731114
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/release-config-yaml.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- main
77
paths:
88
- "packages/config-yaml/**"
9+
- ".github/workflows/release-config-yaml.yml"
10+
- ".github/workflows/reusable-release.yml"
11+
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
916

1017
jobs:
1118
release:
@@ -16,3 +23,12 @@ jobs:
1623
secrets:
1724
SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
1825
SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
26+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
27+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
28+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
29+
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
30+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
31+
AZURE_FOUNDRY_CODESTRAL_API_KEY: ${{ secrets.AZURE_FOUNDRY_CODESTRAL_API_KEY }}
32+
AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY: ${{ secrets.AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY }}
33+
AZURE_OPENAI_GPT41_API_KEY: ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }}
34+
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}

.github/workflows/release-fetch.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- main
77
paths:
88
- "packages/fetch/**"
9+
- ".github/workflows/release-fetch.yml"
10+
- ".github/workflows/reusable-release.yml"
11+
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
916

1017
jobs:
1118
release:
@@ -16,3 +23,12 @@ jobs:
1623
secrets:
1724
SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
1825
SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
26+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
27+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
28+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
29+
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
30+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
31+
AZURE_FOUNDRY_CODESTRAL_API_KEY: ${{ secrets.AZURE_FOUNDRY_CODESTRAL_API_KEY }}
32+
AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY: ${{ secrets.AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY }}
33+
AZURE_OPENAI_GPT41_API_KEY: ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }}
34+
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}

0 commit comments

Comments
 (0)