Skip to content
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

Test and workflow updates #492

Closed
wants to merge 51 commits into from

Conversation

extremeheat
Copy link
Member

@extremeheat extremeheat commented Mar 29, 2024

Add data extraction and automatic update workflow

  1. index.js -- ran initially on CRON schedule to check for updates
  2. update1.js -- runs bedrock-protocol client against the updated server to collect data from server->client. Also runs a behavior pack to extract block data.
  3. disa.exe -- disassembly analysis for Minecraft bedrock edition server binary (combining data from both Linux/Win binaries). Has a basic x86 interpreter with some ugly string manipulation and state-tracking code.
    • x86 disassembly analysis for the server software with symbol information is similar to decompiling the Minecraft Java Edition and running various extractors on the decompiled code
    • Can be expanded to extract pretty much any desired data from the server software
  4. pdba.exe -- get symbol data from PDB file for Minecraft bedrock edition Windows server binary
  5. update3.js -- aggregate and finalize data, send to llm-services for further handling

Copy link

socket-security bot commented Mar 29, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] environment, filesystem Transitive: eval, network, shell, unsafe +174 109 MB extremeheat
npm/[email protected] environment, filesystem, network, shell +2 177 kB extremeheat

View full report↗︎

@extremeheat extremeheat marked this pull request as draft April 4, 2024 07:15
@extremeheat extremeheat requested a review from rom1504 April 5, 2024 02:44
@rom1504
Copy link
Member

rom1504 commented Apr 19, 2024

does it work?

@extremeheat
Copy link
Member Author

extremeheat commented Apr 20, 2024

It works right now for extracting data/updating creates GH issue with some additional information like the mc-data helper-bot, but I've not implemented the auto PR generation yet.

Since the code is pretty big here I think it may make more sense to move the helper-bot code (the extractor part) outside of the repo to a new repo that's called over a workflow dispatch.

Maybe to https://github.com/PrismarineJS/minecraft-data-auto-updater ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants