Skip to content

Remove UdonToolkit dependency; upgrade CI/CD and VPM environment; add udonsharp-lint CI#14

Open
esnya with Copilot wants to merge 34 commits into
alphafrom
copilot/upgrade-to-latest-environment
Open

Remove UdonToolkit dependency; upgrade CI/CD and VPM environment; add udonsharp-lint CI#14
esnya with Copilot wants to merge 34 commits into
alphafrom
copilot/upgrade-to-latest-environment

Conversation

Copilot AI commented Apr 7, 2026

Copy link
Copy Markdown
Contributor
  • Previous session changes (ATCRadar count field, dead OnAfterEditor removal, package-lock.json sync)
  • ATCRadar.cs: Fix warning condition; RadioTunerDemultiplexer.cs: guard empty tuners in Start(); StandbyFrequencySwitcher.cs: add _RequestSerialization alias; inject attribute cleanups; CDIAnimationDriver.cs rename typo
  • RadioTunerDemultiplexer.cs: Guard Index setter against empty tuners; guard toggledObjects bounds; remove unused using TMPro;
  • ATCRadar.cs: Initialize previousPositions[i] and previousTimes[i] in Start()
  • StandbyFrequencySwitcher.cs: Remove unused using TMPro; and using URC;
  • ATCRadar.cs: Use Time.time - Mathf.Epsilon for previousTimes[i]; RadioTunerDemultiplexer.cs: clamp Index against Mathf.Min(tuners.Length, standbyTuners.Length)
  • USharpInjectAttribute.cs, UdonSharpComponentInjectAttribute.cs, ComponentInjectAttribute.cs: Fix array injection to use Array.CreateInstance(valueType, count) instead of GetConstructor(...).Invoke(...); RadioTunerDemultiplexer.cs: null-guard SelectedTuner/StandbyTuner and make all callers no-op when tuner is null
  • udonsharp-lint CI: Added .config/dotnet-tools.json pinning tktco.UdonSharpLinter v0.3.1 and .github/workflows/udonsharp-lint.yml running the linter over Packages/ on every push and pull request touching C# files — all 44 scripts currently pass with 0 errors/warnings

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the UdonToolkit dependency from the Virtual-CNS packages and upgrades the repository’s CI/release tooling and VPM/Unity/VRChat SDK package environment to current versions.

Changes:

  • Removed sh.orels.udontoolkit from package dependencies and stripped UdonToolkit-only attributes/usings from affected UdonSharp scripts.
  • Upgraded VPM/Unity targeting across packages (Unity 2019.42022.3, VRChat Worlds 3.1.13.10.2, removed explicit com.vrchat.udonsharp).
  • Updated GitHub Actions and semantic-release toolchain to newer major versions.

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Packages/jp.virtualaviation.virtual-flight-data-bus/package.json Removes UdonToolkit dep; bumps Unity/VRChat VPM versions; drops explicit UdonSharp VPM dep.
Packages/jp.virtualaviation.virtual-flight-data-bus.connector-sf/package.json Bumps Unity/VRChat VPM versions; drops explicit UdonSharp VPM dep.
Packages/jp.virtualaviation.virtual-cns/package.json Removes UdonToolkit dep; bumps Unity/VRChat VPM versions; drops explicit UdonSharp VPM dep.
Packages/jp.virtualaviation.virtual-cns/RadioTuner/Scripts/StandbyFrequencySwitcher.cs Removes UdonToolkit editor hook attribute usage.
Packages/jp.virtualaviation.virtual-cns/RadioTuner/Scripts/RadioTunerDemultiplexer.cs Removes UdonToolkit attributes (ListView, editor hook).
Packages/jp.virtualaviation.virtual-cns/RadioTuner/Scripts/RadioTuner.cs Removes UdonToolkit attributes; replaces inspector buttons with ContextMenu.
Packages/jp.virtualaviation.virtual-cns/RadioTuner/Scripts/AudioSelector.cs Removes UdonToolkit editor hook attribute usage.
Packages/jp.virtualaviation.virtual-cns/Navigation/Scripts/MarkerReceiver.cs Removes UdonToolkit attributes (Popup, MaterialOf).
Packages/jp.virtualaviation.virtual-cns/Navigation/Scripts/MarkerBeacon.cs Removes UdonToolkit using.
Packages/jp.virtualaviation.virtual-cns/Instruments/Scripts/CDIAnimationDriver.cs Removes UdonToolkit Popup attributes.
Packages/jp.virtualaviation.virtual-cns/General/Scripts/USharpInjectAttribute.cs Removes UdonToolkit dependency from inject attribute base.
Packages/jp.virtualaviation.virtual-cns/General/Scripts/Attirubtes/UdonSharpComponentInjectAttribute.cs Removes UdonToolkit dependency from inject attribute base.
Packages/jp.virtualaviation.virtual-cns/General/Scripts/Attirubtes/ComponentInjectAttribute.cs Removes UdonToolkit dependency from inject attribute base.
Packages/jp.virtualaviation.virtual-cns/Communication/Scripts/AirbandDatabase.cs Removes UdonToolkit ListView attributes.
Packages/jp.virtualaviation.virtual-cns/ATIS/Scripts/ATISGenerator.cs Removes UdonToolkit ListView/Popup attributes.
Packages/jp.virtualaviation.virtual-cns/AirTrafficControl/Scripts/ATCRadar.cs Removes UdonToolkit attributes; replaces editor button with ContextMenu.
package.json Upgrades semantic-release and plugin majors; drops explicit UdonSharp VPM dep.
.github/workflows/release.yml Upgrades actions/checkout and actions/setup-node to v4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Packages/jp.virtualaviation.virtual-cns/AirTrafficControl/Scripts/ATCRadar.cs Outdated
@esnya

esnya commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

@copilot apply changes based on the comments in this thread

@esnya esnya changed the base branch from master to alpha April 7, 2026 09:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Packages/jp.virtualaviation.virtual-cns/AirTrafficControl/Scripts/ATCRadar.cs Outdated
Comment thread Packages/jp.virtualaviation.virtual-cns/package.json
@esnya

esnya commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

@copilot apply changes based on the comments in this thread

…terEditor blocks, sync package-lock.json

Agent-Logs-Url: https://github.com/VirtualAviationJapan/Virtual-CNS/sessions/832adf64-b4a3-4e4f-aa8c-5ae96403282b

Co-authored-by: esnya <2088693+esnya@users.noreply.github.com>

Copilot AI commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot apply changes based on the comments in this thread

Done in commit 9c816b7:

  • ATCRadar.cs: Replaced System.Array.Resize with a cached count private field set in Start(). Update() now returns early when count == 0 and computes Time.frameCount % count — original serialized arrays are never mutated at runtime.
  • StandbyFrequencySwitcher.cs, AudioSelector.cs, RadioTunerDemultiplexer.cs: Removed all dead OnAfterEditor / SetupHelperGUI methods and their now-unused #if UNITY_EDITOR conditional imports.
  • package-lock.json: Removed the stale sh.orels.udontoolkit entries for both virtual-cns and virtual-flight-data-bus packages.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Packages/jp.virtualaviation.virtual-cns/AirTrafficControl/Scripts/ATCRadar.cs Outdated
@esnya

esnya commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

@copilot apply changes based on the comments in this thread

@esnya

esnya commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65ac3dc114

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .releaserc.yml
@esnya

esnya commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@codex review

@esnya

esnya commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@esnya

esnya commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f88cacd93

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/run-static-checks.sh Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d3b87ce28a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/run-static-checks.sh Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c35a100dee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +18 to +21
TARGET_COMMIT='HEAD'
mapfile -t CHECK_FILES < <(git diff-tree --no-commit-id --name-only --root -r "$TARGET_COMMIT" -- "${CHECK_PATHS[@]}")
if [ "${#CHECK_FILES[@]}" -gt 0 ]; then
git diff-tree --check --no-commit-id --root -r "$TARGET_COMMIT" -- "${CHECK_FILES[@]}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Check whitespace across pushed commit range

In CI pushes where GITHUB_BASE_REF is unset, this fallback sets TARGET_COMMIT='HEAD' (and the sibling branch uses HEAD^2) and then calls git diff-tree --check for that single commit only. Per git diff-tree -h (<tree-ish> [<tree-ish>]), the one-argument form validates one commit, not the full pushed range, so a multi-commit push can still pass even if an earlier commit introduced trailing whitespace. Please diff/check against the push range (for example, before..after or merge-base...HEAD) so all pushed changes are covered.

Useful? React with 👍 / 👎.

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.

3 participants