- Notifications
You must be signed in to change notification settings - Fork 5
feat!: Default to github cache, blacksmith or no cache are configurable, extensive 1.7.10 logging #74
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
Conversation
There was a problem hiding this comment.
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 improves logging for Minecraft 1.7.10 by adding a new NetworkManager mixin and adjusts the default caching behavior along with corresponding documentation and workflow updates.
- Change
cache-mcdefault fromtruetofalsein the GitHub Action - Add a Caching section to the README for enabling
.minecraftcaching - Introduce
MixinNetworkManagerto log outbound/inbound packets and exceptions - Update workflows to respect the new
cache-mcinput
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| action.yml | Changed cache-mc default to false |
| README.md | Added "## Caching" section explaining cache-mc usage |
| 1_7_10/src/main/resources/mc_runtime_test.mixins.json | Registered new MixinNetworkManager in the mixin config |
| 1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java | Added logging hooks for packet send/receive and exceptions |
| .github/workflows/test-local-action.yml | Removed hardcoded cache-mc override |
| .github/workflows/run-gametests.yml | Enabled cache-mc: "true" for game test runs |
| .github/workflows/lifecycle.yml | Enabled cache-mc: "true" in lifecycle workflow |
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Outdated Show resolved Hide resolved
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Outdated Show resolved Hide resolved
…rkManager.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
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 refines caching behavior by changing the default for cache-mc, adds a new mixin to improve packet logging in MC 1.7.10, and updates docs and workflows to reflect these changes.
- Default
cache-mcinput flipped to false; workflows updated to opt in/out. - New
MixinNetworkManagermixin logs outbound, inbound, and exception events. - README gains a “Caching” section with setup instructions.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| action.yml | Changed default cache-mc from "true" to "false" |
| README.md | Added “Caching” section with Blacksmith instructions |
| 1_7_10/src/main/resources/mc_runtime_test.mixins.json | Registered new MixinNetworkManager mixin |
| 1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java | Implemented packet and error logging injections |
| .github/workflows/test-local-action.yml | Removed hardcoded cache-mc override |
| .github/workflows/run-gametests.yml | Enabled caching via cache-mc: "true" |
| .github/workflows/lifecycle.yml | Enabled caching via cache-mc: "true" |
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Show resolved Hide resolved
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Show resolved Hide resolved
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Show resolved Hide resolved
There was a problem hiding this comment.
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 updates caching defaults and enhances logging for Minecraft 1.7.10 network packets.
- Changed
cache-mcdefault tofalseand re-enabled it in CI workflows where needed - Added a new
MixinNetworkManagermixin and corresponding JSON entry to log outbound/inbound packets and exceptions - Extended README with a new Caching section describing how to enable
.minecraftcaching
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| action.yml | Changed default of cache-mc from "true" to "false" |
| README.md | Added a Caching section explaining how to enable the cache-mc input |
| 1_7_10/src/main/resources/mc_runtime_test.mixins.json | Added "MixinNetworkManager" to mixin list |
| 1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java | Introduced packet logging and exception hooks via mixins |
| .github/workflows/test-local-action.yml | Removed hardcoded cache-mc: false to rely on new default |
| .github/workflows/run-gametests.yml | Explicitly set cache-mc: "true" for game-test runs |
| .github/workflows/lifecycle.yml | Enabled cache-mc: "true" in lifecycle jobs |
Comments suppressed due to low confidence (1)
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java:22
- [nitpick] This new logging hook isn’t covered by existing tests; consider adding an integration or unit test to verify that packet logging behaves as expected.
@Inject(method = "scheduleOutboundPacket", at = @At("HEAD")) 1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Show resolved Hide resolved
1_7_10/src/main/java/me/earth/mc_runtime_test/mixin/MixinNetworkManager.java Show resolved Hide resolved
| @ChipWolf defaults to github cache now, but blacksmith is configurable. |
okafke left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* chore(mod): 1.21.5 (headlesshq#64) * chore(deps): update googleapis/release-please-action digest to a02a34c (headlesshq#62) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(deps): support 1.21.5 and update to HeadlessMc 2.5.1 * chore(main): release 3.1.0 (headlesshq#68) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(docs): escape characters in README (headlesshq#69) * fix(action): Change cache keys to prevent prefix fallback to cache of incorrect version (headlesshq#71) * chore(main): release 3.1.1 (headlesshq#72) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(deps): update useblacksmith/setup-gradle digest to 7f7b355 (headlesshq#75) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/download-artifact digest to d3f86a1 (headlesshq#65) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update useblacksmith/setup-java digest to 4ef8123 (headlesshq#63) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/upload-artifact digest to ea165f8 (headlesshq#55) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency net.fabricmc.fabric-api:fabric-gametest-api-v1 to v1.3.16+1172e8970d (headlesshq#76) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat!: Default to github cache, blacksmith or no cache are configurable, extensive 1.7.10 logging (headlesshq#74) Co-authored-by: Chip Wolf <hello@chipwolf.uk> Co-authored-by: Chip Wolf <chipukyt@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(main): release 4.0.0 (headlesshq#78) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(ci): automatic PR when new Mc version is available (headlesshq#85) * chore(ci): add requirements.txt * chore(ci): fix new mc version workflow (headlesshq#88) * chore(ci): fix reviewers and syntax in new mc version workflow (headlesshq#90) * chore(ci): run matrix based on PR message (headlesshq#92) * chore(ci): use find-comment action to find PR comment (headlesshq#94) * chore(ci): use pull_request.body * chore(ci): log PR comment body matching * chore(ci): Fixed regex for PR comment body matching * chore(ci): Fixed regex for PR comments not matching zeros * chore(ci): modify README in new mc version workflow (headlesshq#103) * feat(mod): Support 1.21.6 (headlesshq#81) Co-authored-by: okafke <65917827+okafke@users.noreply.github.com> * fix(action): switch from wget to curl to support windows (headlesshq#104) * chore(main): release 4.1.0 (headlesshq#106) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(docs): add supported versions to README * chore(ci): read build & run data from file (headlesshq#111) * chore(ci): improve README modification * chore(deps): update dependency urllib3 to v2.6.0 [security] (headlesshq#113) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * refactor: 1.21.10 already handled by 1_21_9 * ci: null2264 * ci: Use github cache * ci: Use github cache * refactor: Switching to uv --------- Co-authored-by: 3arthqu4ke <56741599+3arthqu4ke@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Chip Wolf <hello@chipwolf.uk> Co-authored-by: Chip Wolf <chipukyt@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: okafke <65917827+okafke@users.noreply.github.com>
Related: #23