Skip to content

Conversation

@prathikr
Copy link
Contributor

@prathikr prathikr commented Jan 21, 2026

Changes made for public sdk_v2

  1. sdk_v2\cs\test\FoundryLocal.Tests\FoundryLocalManagerTest.cs
    removed comment about implementing test-data-shared feature since we already did, no longer need to intercept and mock get_model_list command

  2. sdk_v2\cs\test\FoundryLocal.Tests\LOCAL_MODEL_TESTING.md
    changed docs to not expose test-data-shared instructions and just asks user to set TestModelCacheDirName to their model cache

  3. sdk_v2\cs\test\FoundryLocal.Tests\Utils.cs
    removed CachePath and Web.ExternalUri config vars

  4. .github/workflows/sdk_v2
    modified pipeline to only include debug build for c# sdk as a proof-of-concept
    AZURE_DEVOPS_PAT stored and accessed as a github actions secret (needs to be updated weekly at the moment, can switch to a stable/auto-regenerable access token later)

  5. updated readme to not include test-data-shared details and instructs users to set modelCacheDir if they want to customize the tests

  6. Removed signing as that requires private auth creds and only needs to be done for official releases

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
foundry-local Ready Ready Preview, Comment Jan 23, 2026 7:17pm

Request Review

@skottmckay
Copy link
Contributor

CodeFlow for GitHub does not download executable files. If you trust this file and would like to run it, please download it yourself through GitHub.

Delete,


Refers to: sdk_v2/cs/src/msbuild.binlog:1 in 5e89930. [](commit_id = 5e89930, deletion_comment = False)

@@ -0,0 +1,3 @@
{
"TestModelCacheDirName": "test-data-shared"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have a different default for the public repo?

Choose a reason for hiding this comment

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

Does developer need to manually set this before running the tests? Can we add a default dir that we think is reasonable for developers to not need to change instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default could be ${home}\.foundry\cache\models? That's the default model cache for foundry local

dotnet-version: '9.0.x'
source-url: https://pkgs.dev.azure.com/microsoft/windows.ai.toolkit/_packaging/Neutron/nuget/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}

Choose a reason for hiding this comment

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

Unfortunately, secrets do not work very well for external contributions. External contributions come in mostly from forks of the repository. The forked repository does not inherit the secrets of the parent repository. And as a result, PRs created from forks will fail to run.

Let's not block this PR. But we need to think of another way to address this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, let me think on it

Choose a reason for hiding this comment

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

Would it be possible to share testdata between cs and js?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, can do separately

@prathikr prathikr merged commit 4fbe5d3 into main Jan 23, 2026
11 checks passed
@prathikr prathikr deleted the prathikrao/migrate-js-sdk-v2-to-public-gh branch January 23, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants