Skip to content

chore(sdks): refine packaging#265

Open
ninan-nn wants to merge 1 commit intoalibaba:mainfrom
ninan-nn:feature/refine_pkging
Open

chore(sdks): refine packaging#265
ninan-nn wants to merge 1 commit intoalibaba:mainfrom
ninan-nn:feature/refine_pkging

Conversation

@ninan-nn
Copy link
Collaborator

Summary

  • Refine packaging metadata
  • Refine dependency mgmt

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

Pangjiping
Pangjiping previously approved these changes Feb 28, 2026
Copy link
Collaborator

@Pangjiping Pangjiping left a comment

Choose a reason for hiding this comment

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

lgtm

@jwx0925
Copy link
Collaborator

jwx0925 commented Feb 28, 2026

@codex review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

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

Refined packaging for C# SDKs and updated project URLs. However, there is a critical issue in the GitHub workflow regarding the consistency of the project state between restore and pack steps, which will likely break the release pipeline.

- name: Pack
if: startsWith(github.ref, format('refs/tags/csharp/{0}/v', matrix.sdk.tagPrefix))
run: |
EXTRA_PACK_ARGS=""
Copy link
Collaborator

Choose a reason for hiding this comment

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

[P1] Inconsistent project state between Restore and Pack steps

The dotnet pack command is now called with -p:UseLocalOpenSandboxProjectReference=false and --no-restore for the code-interpreter SDK. However, the preceding Restore step (line 58) does not receive this property, meaning it will restore the project using the default project references. When dotnet pack later attempts to build using package references with --no-restore, it will fail because the required package assets were never resolved or restored.

This property MUST be passed to both the Restore and Pack steps. A cleaner approach would be to add this to the matrix definition or set a shared environment variable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FIXED, Restore and Pack unified

Default to local source reference for development.
For release packing with NuGet version range, run:
dotnet pack -c Release -p:UseLocalOpenSandboxProjectReference=false
-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

[P2] Hardcoded dependency version range

The version range [0.1.0,0.2.0) is hardcoded. In a monorepo, this manually maintained value is prone to diverging from the actual version of the Alibaba.OpenSandbox project.

If the goal is to enforce SemVer constraints in the generated package, consider using a shared MSBuild property or leveraging ProjectReference with specific PackageVersion metadata to automate this, ensuring the SDKs stay in sync without manual updates.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refined with shared MsBuild

@ninan-nn ninan-nn force-pushed the feature/refine_pkging branch from 46eb299 to 17f5564 Compare March 2, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants