-
Notifications
You must be signed in to change notification settings - Fork 10
Fix memory usage and chunkcache #18
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
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
d6b2c05
Optomize memory usage and cache usage
Trainboy15 6952825
Update version from 1.0.1-beta to 1.0.0-patch
Trainboy15 743151f
Remove gradle temp
Trainboy15 0a82893
Refactor Gradle CI workflow for improved structure
Trainboy15 f499758
Update build artifact
invalid-email-address ecedd55
Remove deployment step from gradle.yml
Trainboy15 35d2da4
Update build artifact
invalid-email-address 52ea90c
Fix config
Trainboy15 bcfb2b9
Add NPE catches
Trainboy15 a632e1f
Merge pull request #1 from Trainboy15/testing
Trainboy15 e6d7ee9
Update build artifact
invalid-email-address cd5988f
Tab indentation
Trainboy15 5b1cae7
Update build artifact
invalid-email-address abb5169
Clean up whitespace
UplandJacob ab3107e
Update build artifact
invalid-email-address b64bd0d
Fix IllegalArgumentException
Trainboy15 d5d0b4c
Update build artifact
invalid-email-address d7da218
Add update check
Trainboy15 c327678
Fixed update checker
Trainboy15 854f750
Update build artifact
invalid-email-address 951fab7
Add testing... IDK if it will work
Trainboy15 ddd22ad
Change to java 17
Trainboy15 c97efac
Fix dependencies?
Trainboy15 8005e8f
FR this time trust
Trainboy15 509cf1b
Update build artifact
invalid-email-address 2967f45
Refactor GitHub Actions workflow for tests
Trainboy15 21ac55b
Update build artifact
invalid-email-address acf5f53
maybe fix memory issuses
Trainboy15 b2a43a6
Update build artifact
invalid-email-address 707b3cf
Impement @UplandJacob's changes
Trainboy15 844dbd9
Update build artifact
invalid-email-address 9cc2862
undo some things for now
UplandJacob c23163c
Update build artifact
invalid-email-address e5c2f5f
oop more
UplandJacob fe9c89c
Update build artifact
invalid-email-address 6427b1e
Remove unnecessary line from gradle.yml
UplandJacob fb46122
Update build artifact
invalid-email-address 6a48b75
Implement some of @UplandJacob's changes
Trainboy15 0c404b3
Update build artifact
invalid-email-address 1ca2cda
Sync with upstream
Trainboy15 6fb653a
Revert "Sync with upstream"
UplandJacob 517518d
Merge remote-tracking branch 'origin/main' into Trainboy15/main
UplandJacob be6551f
Update build artifact
invalid-email-address 1363885
Remove unnecessary temp vars (used only once each)
UplandJacob 68a1656
Merge commit 'refs/pull/18/head' of https://github.com/TuffNetwork/Tu…
UplandJacob f23294f
Update build artifact
invalid-email-address b8801b2
Remove unused version checking var
UplandJacob 126fd78
Update build artifact
invalid-email-address 7a8a860
Remove old tests
Trainboy15 2f3586c
Fix test logging configuration in build.gradle
Trainboy15 c5c1873
Update actions/checkout to v6
UplandJacob 25ce262
Fix buffer index order with optimized loop order
UplandJacob 5802769
Update build artifact
invalid-email-address b74a4b1
Move test to correct dir
UplandJacob 4c7e53f
Merge branch 'main'
UplandJacob 6e6af3f
Merge commit 'refs/pull/18/head'
UplandJacob 32d4faa
Partially fix test
UplandJacob d35f378
Unregister outgoing as well
UplandJacob 8cc4058
Merge branch 'main' into main
UplandJacob 38c44be
Add permission for read to make advanced security happy
UplandJacob 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Build & Test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "**" ] | ||
| pull_request: | ||
| branches: [ "**" ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Unit Tests | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Java 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'temurin' | ||
| cache: gradle | ||
|
|
||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Run tests | ||
| run: ./gradlew test --no-daemon | ||
|
|
||
| - name: Upload test reports | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test-reports | ||
| path: build/reports/tests/test/ | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
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
|
UplandJacob marked this conversation as resolved.
|
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| package tf.tuff; | ||
|
|
||
| import be.seeseemelk.mockbukkit.MockBukkit; | ||
| import be.seeseemelk.mockbukkit.ServerMock; | ||
| import be.seeseemelk.mockbukkit.entity.PlayerMock; | ||
| import org.junit.jupiter.api.*; | ||
|
|
||
| import static org.junit.jupiter.api.Assertions.*; | ||
|
|
||
| class TuffXTest { | ||
|
UplandJacob marked this conversation as resolved.
|
||
|
|
||
| private static ServerMock server; | ||
| private static TuffX plugin; | ||
|
|
||
| @BeforeEach | ||
| void setUp() { | ||
| server = MockBukkit.mock(); | ||
| plugin = MockBukkit.load(TuffX.class); | ||
| } | ||
|
|
||
| @AfterEach | ||
| void tearDown() { | ||
| MockBukkit.unmock(); | ||
| } | ||
|
|
||
| @Test | ||
| void pluginEnablesSuccessfully() { | ||
| assertTrue(plugin.isEnabled(), "Plugin should be enabled after load"); | ||
| } | ||
|
|
||
|
|
||
| @Test | ||
| void reloadDoesNotThrow() { | ||
| assertDoesNotThrow(() -> plugin.reloadTuffX(), | ||
| "reloadTuffX() should not throw"); | ||
| } | ||
| } | ||
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.