Skip to content

Commit 5311df3

Browse files
committed
Merge branch 'bugfix-2.1.x' into mike-config
* bugfix-2.1.x: (159 commits) 🐛 Clean up DELTA babystep Z 🐛 Ensure root for 'M503 C' 🩹 FT_MOTION Followup 🔨 Move Docker local test script 🌐 Update Italian language (MarlinFirmware#25587) 🐛 Fix Long FIlename lookup (MarlinFirmware#25598) ✨ Fixed-Time Motion with Input Shaping by Ulendo (MarlinFirmware#25394) 🎨 HAS_SHAPING => HAS_ZV_SHAPING [cron] Bump distribution date (2023-04-01) 🧑‍💻 CardReader adjustments (MarlinFirmware#25611) 🔧 Fix SENSORLESS hit state error (MarlinFirmware#25604) 🔧 DGUS_LCD_UI selectable options [cron] Bump distribution date (2023-03-31) 🩹 Fix displayed mix percentages 🎨 Refine probe, more debug 🐛 Fix _HAS_FAN for fan on Pin 0 🩹 Fix Ender-3 V2 with no fan 🩹 Update Trigorilla V006 fan pin [cron] Bump distribution date (2023-03-30) 🔨 MarlinSimUI updates (MarlinFirmware#25589) ... # Conflicts: # .github/workflows/test-builds.yml # Marlin/Configuration.h
2 parents 1f4983d + e687490 commit 5311df3

File tree

670 files changed

+19803
-5709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

670 files changed

+19803
-5709
lines changed

.devcontainer/Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/python-3/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
4+
ARG VARIANT="3.9.0-buster"
5+
FROM python:${VARIANT}
6+
7+
# [Option] Install Node.js
8+
ARG INSTALL_NODE="true"
9+
ARG NODE_VERSION="lts/*"
10+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
11+
12+
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
13+
# COPY requirements.txt /tmp/pip-tmp/
14+
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
15+
# && rm -rf /tmp/pip-tmp
16+
17+
# [Optional] Uncomment this section to install additional OS packages.
18+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
19+
# && apt-get -y install --no-install-recommends <your-package-list-here>
20+
21+
# [Optional] Uncomment this line to install global node packages.
22+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
23+
24+
25+
RUN pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
26+
RUN platformio update
27+
# To get the test platforms
28+
RUN pip install PyYaml
29+
#ENV PATH /code/buildroot/bin/:/code/buildroot/tests/:${PATH}

.devcontainer/devcontainer.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/python-3
3+
{
4+
"name": "Python 3",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"context": "..",
8+
"args": {
9+
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10+
"VARIANT": "3.9.0-buster",
11+
// Options
12+
"INSTALL_NODE": "false",
13+
"NODE_VERSION": "lts/*"
14+
}
15+
},
16+
17+
// Set *default* container specific settings.json values on container create.
18+
"settings": {
19+
"python.pythonPath": "/usr/local/bin/python",
20+
"python.languageServer": "Pylance",
21+
"python.linting.enabled": true,
22+
"python.linting.pylintEnabled": true,
23+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
24+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
25+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
26+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
27+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
28+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
29+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
30+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
31+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
32+
},
33+
34+
// Add the IDs of extensions you want installed when the container is created.
35+
"extensions": [
36+
"ms-python.python",
37+
"ms-python.vscode-pylance",
38+
"platformio.platformio-ide",
39+
"marlinfirmware.auto-build",
40+
"editorconfig.editorconfig"
41+
],
42+
43+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44+
// "forwardPorts": [],
45+
46+
// Use 'postCreateCommand' to run commands after the container is created.
47+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
48+
49+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50+
// "remoteUser": "vscode"
51+
}

.gitignore

+19-26
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,18 @@
2121

2222
# Generated files
2323
_Version.h
24-
bdf2u8g
24+
bdf2u8g.exe
25+
genpages.exe
2526
marlin_config.json
2627
mczip.h
2728
*.gen
2829
*.sublime-workspace
2930

30-
#
3131
# OS
32-
#
3332
applet/
3433
.DS_Store
3534

36-
#
37-
# Misc
38-
#
39-
*~
40-
*.orig
41-
*.rej
42-
*.bak
43-
*.idea
44-
*.i
45-
*.ii
46-
*.swp
47-
tags
48-
49-
#
50-
# C++
51-
#
52-
# Compiled Object files
35+
# Compiled C++ Object files
5336
*.slo
5437
*.lo
5538
*.o
@@ -80,10 +63,7 @@ tags
8063
*.out
8164
*.app
8265

83-
#
84-
# C
85-
#
86-
# Object files
66+
# Compiled C Object files
8767
*.o
8868
*.ko
8969
*.obj
@@ -143,13 +123,13 @@ vc-fileutils.settings
143123
.vscode/*
144124
!.vscode/extensions.json
145125

146-
#Simulation
126+
# Simulation files
147127
imgui.ini
148128
eeprom.dat
149129
spi_flash.bin
150130
fs.img
151131

152-
#cmake
132+
# CMake
153133
CMakeLists.txt
154134
src/CMakeLists.txt
155135
CMakeListsPrivate.txt
@@ -170,3 +150,16 @@ __pycache__
170150

171151
# IOLogger logs
172152
*_log.csv
153+
154+
# Misc.
155+
*~
156+
*.orig
157+
*.rej
158+
*.bak
159+
*.idea
160+
*.i
161+
*.ii
162+
*.swp
163+
tags
164+
*.logs
165+
*.bak

Makefile

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
SCRIPTS_DIR := buildroot/share/scripts
2+
CONTAINER_RT_BIN := docker
3+
CONTAINER_RT_OPTS := --rm -v $(PWD):/code -v platformio-cache:/root/.platformio
4+
CONTAINER_IMAGE := marlin-dev
5+
16
help:
27
@echo "Tasks for local development:"
38
@echo "* tests-single-ci: Run a single test from inside the CI"
49
@echo "* tests-single-local: Run a single test locally"
5-
@echo "* tests-single-local-docker: Run a single test locally, using docker-compose"
10+
@echo "* tests-single-local-docker: Run a single test locally, using docker"
611
@echo "* tests-all-local: Run all tests locally"
7-
@echo "* tests-all-local-docker: Run all tests locally, using docker-compose"
8-
@echo "* setup-local-docker: Setup local docker-compose"
12+
@echo "* tests-all-local-docker: Run all tests locally, using docker"
13+
@echo "* setup-local-docker: Build the local docker image"
914
@echo ""
1015
@echo "Options for testing:"
1116
@echo " TEST_TARGET Set when running tests-single-*, to select the"
@@ -34,19 +39,21 @@ tests-single-local:
3439

3540
tests-single-local-docker:
3641
@if ! test -n "$(TEST_TARGET)" ; then echo "***ERROR*** Set TEST_TARGET=<your-module> or use make tests-all-local-docker" ; return 1; fi
37-
docker-compose run --rm marlin $(MAKE) tests-single-local TEST_TARGET=$(TEST_TARGET) VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD) ONLY_TEST="$(ONLY_TEST)"
42+
@if ! $(CONTAINER_RT_BIN) images -q $(CONTAINER_IMAGE) > /dev/null ; then $(MAKE) setup-local-docker ; fi
43+
$(CONTAINER_RT_BIN) run $(CONTAINER_RT_OPTS) $(CONTAINER_IMAGE) $(MAKE) tests-single-local TEST_TARGET=$(TEST_TARGET) VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD) ONLY_TEST="$(ONLY_TEST)"
3844
.PHONY: tests-single-local-docker
3945

4046
tests-all-local:
4147
export PATH="./buildroot/bin/:./buildroot/tests/:${PATH}" \
4248
&& export VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) \
43-
&& for TEST_TARGET in $$(./get_test_targets.py) ; do echo "Running tests for $$TEST_TARGET" ; run_tests . $$TEST_TARGET ; done
49+
&& for TEST_TARGET in $$($(SCRIPTS_DIR)/get_test_targets.py) ; do echo "Running tests for $$TEST_TARGET" ; run_tests . $$TEST_TARGET ; done
4450
.PHONY: tests-all-local
4551

4652
tests-all-local-docker:
47-
docker-compose run --rm marlin $(MAKE) tests-all-local VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD)
53+
@if ! $(CONTAINER_RT_BIN) images -q $(CONTAINER_IMAGE) > /dev/null ; then $(MAKE) setup-local-docker ; fi
54+
$(CONTAINER_RT_BIN) run $(CONTAINER_RT_OPTS) $(CONTAINER_IMAGE) $(MAKE) tests-all-local VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD)
4855
.PHONY: tests-all-local-docker
4956

5057
setup-local-docker:
51-
docker-compose build
58+
$(CONTAINER_RT_BIN) build -t $(CONTAINER_IMAGE) -f docker/Dockerfile .
5259
.PHONY: setup-local-docker

0 commit comments

Comments
 (0)