-
Notifications
You must be signed in to change notification settings - Fork 358
Upload playground standalone emitters #10225
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
Closed
timotheeguerin
wants to merge
110
commits into
microsoft:main
from
timotheeguerin:standalone-emitter-upload-playground
Closed
Changes from 2 commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
f4f4c1c
Upload playground standalone emitters
timotheeguerin bddc4f5
use latest instead
timotheeguerin bb15e69
Apply suggestion from @timotheeguerin
timotheeguerin 5883d12
fix: strip leading slash from PackagePath in upload-bundled-emitter
JoshLove-msft dd0c170
Merge branch 'main' of https://github.com/Microsoft/typespec into sta…
timotheeguerin 2814ed0
fix: build emitter before playground bundle upload
JoshLove-msft 0bbb3c7
fix: use npm run build instead of build:emitter
JoshLove-msft 32bb4e7
feat(http-client-csharp): add playground support
JoshLove-msft 6d29a07
fix: use build:emitter instead of build (no .NET SDK needed)
JoshLove-msft fb1e8ac
fix: parameterize build script for playground bundle
JoshLove-msft 1936c27
fix(bundler): use empty shims for Node.js modules that break in browser
JoshLove-msft 3d68882
Revert "fix(bundler): use empty shims for Node.js modules that break …
JoshLove-msft c39bd69
fix(http-client-csharp): use browser override for playground
JoshLove-msft 7b533fb
fix: update test to import _validateDotNetSdk from emit-generate
JoshLove-msft 1f72597
fix: update emitter tests for browser override refactor
JoshLove-msft 2b652f0
fix: use serializeCodeModel for proper / tracking
JoshLove-msft 09bc7f8
fix: remove _validateDotNetSdk re-export from emitter.ts
JoshLove-msft bb5060b
fix: split _validateDotNetSdk tests to separate file
JoshLove-msft 034c1e0
fix: remove duplicate generate import
JoshLove-msft d1ce21e
fix: sync version from published package before bundle upload
JoshLove-msft 3f8ddc5
feat: deploy playground server from publish pipeline
JoshLove-msft fecb3d8
fix: use shared infra constants for server deploy
JoshLove-msft c1012a0
fix: don't default to localhost in browser stub
JoshLove-msft 7909ea4
feat: set playground server URL on the website
JoshLove-msft c9f0f9e
fix: use correct ACR name (azsdkengsys)
JoshLove-msft 0b4a0d7
fix: use typespecacr registry in typespec resource group
JoshLove-msft 0a2eb52
fix: auto-provision Azure resources in pipeline
JoshLove-msft 981d325
fix: disable ACR admin account per org policy
JoshLove-msft 3ca5190
trigger pipeline with latest changes
JoshLove-msft c38b629
fix: use absolute path for Dockerfile in az acr build
JoshLove-msft 57c13fb
fix: add .dockerignore to exclude node_modules from ACR upload
JoshLove-msft 7da1f8b
fix: include eng/ for signing key and ruleset in Docker build
JoshLove-msft 026001b
fix: switch from Container Apps to App Service
JoshLove-msft 35862be
fix: add CORS origins for playground websites
JoshLove-msft 91c6849
fix: enable managed identity for ACR pull
JoshLove-msft 591b78d
fix: rename loop variable to avoid scope conflict
JoshLove-msft b8f019d
fix: create webapp with placeholder image, then configure ACR
JoshLove-msft bdc1a08
fix: ensure identity and ACR pull on every deploy
JoshLove-msft 3995e8c
fix: set WEBSITES_PORT on every deploy, not just create
JoshLove-msft cd1e7aa
fix: use PORT env var for App Service compatibility
JoshLove-msft 10e4e20
fix: add logging for identity setup
JoshLove-msft cfcb5e8
Merge upstream/main and resolve conflicts
JoshLove-msft a4b83af
fix: add C# emitter back to playground packages
JoshLove-msft c496f54
fix: install Node 22 for playground bundle upload
JoshLove-msft a2ae6e9
fix: upgrade App Service plan to B2 (2 vCPU, 3.5 GB)
JoshLove-msft 89b8d8a
fix: create writable temp dir for Roslyn persistent storage
JoshLove-msft 9aecc06
fix: set no-cache on latest.json blobs
JoshLove-msft 416255c
fix: run container as root to debug segfault
JoshLove-msft 237549e
fix: use Ubuntu Noble base image explicitly
JoshLove-msft 4595959
Revert "fix: use Ubuntu Noble base image explicitly"
JoshLove-msft d8e4726
fix: stream generator stdout/stderr to App Service logs
JoshLove-msft 03dd65c
fix: disable .NET diagnostics to prevent container segfault
JoshLove-msft 1727736
fix: disable server GC and increase stack size for generator
JoshLove-msft 12815cc
fix: upgrade to P1v3 (8 GB RAM)
JoshLove-msft bc698ba
fix: add runtime info to health endpoint for debugging
JoshLove-msft cff843b
fix: switch from App Service to Azure Container Instances
JoshLove-msft 94d33ee
fix: add ReadyToRun and TieredCompilation workarounds for Roslyn segf…
JoshLove-msft 833291b
fix: use ACR admin credentials for ACI image pull instead of managed …
JoshLove-msft 4332d9f
fix: revert pipeline to App Service to test ReadyToRun/TieredCompilat…
JoshLove-msft 1afdac1
fix: stop copying global.json into Docker build to avoid SDK version …
JoshLove-msft e68f865
fix: switch to ACI deployment with ACR admin credentials
JoshLove-msft 8527827
fix: add Azure Front Door for HTTPS termination in front of ACI
JoshLove-msft 906295e
fix: use user-assigned managed identity for ACR pull (admin blocked b…
JoshLove-msft bcdf043
fix: use assignee-object-id for role assignment, increase propagation…
JoshLove-msft 64e1e49
fix: remove role assignment from pipeline (requires manual one-time s…
JoshLove-msft d52f630
fix: add probe-interval-in-seconds to Front Door origin group
JoshLove-msft 8f741d5
fix: update playground server URL to Front Door endpoint
JoshLove-msft 263b3f7
fix: add load balancing settings to Front Door origin group
JoshLove-msft 45ce88e
fix: complete Front Door config with all required properties from docs
JoshLove-msft 3bc0338
fix: enable core dump collection and show dump files in /health endpoint
JoshLove-msft 3e0160b
fix: revert to App Service deployment with core dump collection
JoshLove-msft cb1bf58
fix: return stderr in error response, improve core dump file search
JoshLove-msft 97e0f38
fix: add /coredump/{filename} endpoint to download crash dumps
JoshLove-msft 3f49098
fix: write core dumps to /home for Kudu access (Kudu can't see /tmp)
JoshLove-msft f848623
fix: add SSH and dotnet-dump to container for crash diagnostics
JoshLove-msft c0d76ca
fix: add lldb and switch to full dump for native crash analysis
JoshLove-msft 8feeea2
fix: switch to .NET 9 (GA) to test if crash is .NET 10 preview bug
JoshLove-msft 266acd0
fix: revert to .NET 10 (net9.0 can't build net10.0 dependencies)
JoshLove-msft 614cdcf
fix: add test-generator.sh script to container for manual testing
JoshLove-msft e6438bb
fix: keep temp dir on generator failure for manual SSH debugging
JoshLove-msft 1638fa5
fix: bundle Spector routes test data and test script in container
JoshLove-msft 9ef3fbe
fix: move exitCode declaration before try block to fix scope error
JoshLove-msft b96c44a
fix: run generator in-process instead of subprocess to avoid SIGSEGV
JoshLove-msft 48bdd12
fix: disable file locking for Roslyn mmap compatibility in App Service
JoshLove-msft 8ea1049
fix: disable W^X enforcement and use /home for temp files
JoshLove-msft 4eb58e8
fix: revert to subprocess approach (in-process breaks MEF plugin disc…
JoshLove-msft 6b17cf9
fix: add --skip-post-processing flag to bypass Roslyn compilation
JoshLove-msft 8ec3ec5
fix: add diagnostic log for SkipPostProcessing flag, fix log message
JoshLove-msft 916bdab
fix: switch to Windows container to avoid Linux sandbox SIGSEGV
JoshLove-msft 0d3d302
fix: revert to Linux, add granular diagnostic logging to CSharpGen
JoshLove-msft 95bb043
fix: run AddGeneratedFile sequentially with per-file logging
JoshLove-msft 4400390
fix: use stderr with flush for diagnostic logs to avoid buffering
JoshLove-msft c36b90a
fix: add per-step logging (ProcessTypeForBackCompat, Write, AddFile)
JoshLove-msft b6c01c6
fix: increase default stack size to 8MB for deep expression tree recu…
JoshLove-msft dcc11cf
fix: replace ArrayPool.Shared with private pool to avoid mmap in sandbox
JoshLove-msft 3706ae5
fix: run Write() on dedicated thread with 64MB stack to diagnose crash
JoshLove-msft 85ce8cb
fix: use ReadyToRun pre-compilation to minimize JIT at runtime
JoshLove-msft 7ce99c2
fix: replace UnsafeBufferSequence with safe List-based implementation
JoshLove-msft f3c6960
fix: revert to dotnet build (publish misses ClientModel plugin DLL)
JoshLove-msft 34ae6c5
fix: remove stack size and JIT workaround env vars from Dockerfile
JoshLove-msft 41e62e5
fix: revert UnsafeBufferSequence, add per-method logging and dump col…
JoshLove-msft c092798
fix: add lldb-18 to Dockerfile
JoshLove-msft d6bd7ba
fix: remove dedicated thread so crash happens on threadpool (preserve…
JoshLove-msft 464ed4c
fix: pre-warm ParameterProvider JIT compilation to avoid dispatch crash
JoshLove-msft b600c54
fix: log argument types in WriteArguments to identify crash target
JoshLove-msft 1ff83ac
fix: explicitly convert ParameterProvider to ValueExpression in Invok…
JoshLove-msft f002fd1
fix: explicitly convert ParameterProvider spread in protocol method body
JoshLove-msft 0aee433
cleanup: remove all debugging artifacts
JoshLove-msft 1036ac8
cleanup: fully revert UnsafeBufferSequence to original ArrayPool.Shared
JoshLove-msft 2681f2d
chore: use P0v3 App Service plan (1 vCPU, 4GB, cheaper)
JoshLove-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // @ts-check | ||
| import { resolve } from "path"; | ||
| import { bundleAndUploadStandalonePackage } from "../../../packages/bundle-uploader/dist/src/index.js"; | ||
| import { repoRoot } from "../../common/scripts/helpers.js"; | ||
|
|
||
| const packageRelativePath = process.argv[2]; | ||
| if (!packageRelativePath) { | ||
| console.error("Usage: node upload-bundled-emitter.js <package-path>"); | ||
| console.error(" e.g. node upload-bundled-emitter.js packages/http-client-csharp"); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| const packagePath = resolve(repoRoot, packageRelativePath); | ||
|
|
||
| await bundleAndUploadStandalonePackage({ packagePath }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.