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

Small things 4 #379

Merged
merged 7 commits into from
May 17, 2021
Merged

Small things 4 #379

merged 7 commits into from
May 17, 2021

Conversation

Hornwitser
Copy link
Member

Small fixes an improvement that doesn't make sense to put into separate PRs:

  • Tiny change to factorio lib which makes it able to start and stop 0.16 servers.
  • Removal of log rotation which is not needed any more.
  • Switch over from deprecated linter rules to the plugin they were moved to.
  • Fix spidertron serialization of equipment grids
  • Support symbolic links in modules folder
  • Fix log query broken after the master refactor
  • Remove PluginsContext as the plugins are already available in the ControlContext.

Adjust the regex for detecting startup to also work with 0.16 as
updateTick was called mapTick before 0.17.  Note: This commit does not
imply 0.16 is going to be supported by Cluestio.
Remove log rotation as Factorio implemented its own log rotation an
eternety ago and the cluster log already contains all the log entries.
The Node.js specific rules for Eslint were deprecated in favour of the
node plugin for Eslint.  Add node plugin for eslint and switch over to
using its rules, fixing any issues detected.
Create equipment grid for items that support it and doesn't currently
have a grid.  Fixes deserialization of spidertron equipment grids.
Ignore files instead checking if the entry is a directory looking for
modules to patch in.  This is to support symbolic link to modules.
Add missing levels import from the logging library in
ControlConnection.js.
The plugins are available as a property on the Control provided by the
ControlContext which makes the PluginsContext redundant.  Remove it and
use ControlContext to retreive the plugin list in the app.
@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #379 (19ebee4) into master (a7d728c) will increase coverage by 47.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #379       +/-   ##
===========================================
+ Coverage   32.06%   79.17%   +47.10%     
===========================================
  Files          18       59       +41     
  Lines        1029     5137     +4108     
===========================================
+ Hits          330     4067     +3737     
- Misses        699     1070      +371     
Impacted Files Coverage Δ
packages/ctl/ctl.js 75.24% <ø> (ø)
packages/lib/factorio/server.js 88.76% <ø> (ø)
packages/lib/is_deep_strict_equal.js 66.66% <ø> (ø)
packages/lib/link/connectors.js 88.26% <ø> (+85.44%) ⬆️
packages/lib/plugin_loader.js 100.00% <ø> (ø)
packages/lib/shared_commands.js 50.00% <ø> (ø)
packages/master/master.js 73.12% <ø> (ø)
packages/master/src/Master.js 74.77% <ø> (ø)
packages/lib/config/index.js 100.00% <100.00%> (ø)
packages/lib/factorio/index.js 100.00% <100.00%> (ø)
... and 53 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7d728c...19ebee4. Read the comment docs.

@psihius
Copy link
Collaborator

psihius commented May 17, 2021

Merge it

@Hornwitser Hornwitser merged commit b352e89 into clusterio:master May 17, 2021
@Hornwitser Hornwitser deleted the small-things-4 branch November 7, 2021 10:07
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.

2 participants