From f862473969a4df7c1f671adc4d17e1350f535d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 16:19:19 +0200 Subject: [PATCH 01/12] =?UTF-8?q?=F0=9F=91=B7=20Github=20action=20to=20reg?= =?UTF-8?q?ularly=20install=20under=20py2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to know when the installation starts to fail --- .github/workflows/test_install_py2.yml | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test_install_py2.yml diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml new file mode 100644 index 000000000..0dab9e717 --- /dev/null +++ b/.github/workflows/test_install_py2.yml @@ -0,0 +1,33 @@ +name: Test install on Python 2 + +on: + push: + repository_dispatch: + types: [test_install_py2] + schedule: + - cron: '0 */12 * * *' + +jobs: + install-master: + runs-on: ubuntu-latest + steps: + - name: 🐍 Set up Python 2.7 + uses: actions/setup-python@v2 + with: + python-version: 2.7 + - name: ⬇ Checkout code + uses: actions/checkout@v2 + - name: 👷 Build and install checkout + run: | + pip install .[develop, plugins] + + install-latest: + runs-on: ubuntu-latest + steps: + - name: 🐍 Set up Python 2.7 + uses: actions/setup-python@v2 + with: + python-version: 2.7 + - name: 👷 Build and install latest from PyPI + run: | + pip install OctoPrint From 3e777dd43c3c04b8dbdb3fc21a88e5fecdacee8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 16:22:49 +0200 Subject: [PATCH 02/12] =?UTF-8?q?=F0=9F=91=B7=20Only=20install=20basic=20a?= =?UTF-8?q?pp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 0dab9e717..109473ba4 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: 👷 Build and install checkout run: | - pip install .[develop, plugins] + pip install . install-latest: runs-on: ubuntu-latest From bbbebe35fddf2acf3870af3c934504bbdcf036ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 16:23:36 +0200 Subject: [PATCH 03/12] =?UTF-8?q?=F0=9F=91=B7=20Limit=20to=20master=20bran?= =?UTF-8?q?ch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 109473ba4..0b6d0dbf1 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -2,6 +2,8 @@ name: Test install on Python 2 on: push: + branches: + - master repository_dispatch: types: [test_install_py2] schedule: From 5c1271a56e58043bf67666c7cc0ecffd99a7e959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 17:51:42 +0200 Subject: [PATCH 04/12] =?UTF-8?q?=F0=9F=91=B7=20Add=20discord=20notificati?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 0b6d0dbf1..261785cb2 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -22,6 +22,19 @@ jobs: - name: 👷 Build and install checkout run: | pip install . + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for `master` was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for `master` failed' install-latest: runs-on: ubuntu-latest @@ -33,3 +46,16 @@ jobs: - name: 👷 Build and install latest from PyPI run: | pip install OctoPrint + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for latest release was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for latest release failed' From 2bd29a7cb2037575554d22e713086daa274953e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 17:57:19 +0200 Subject: [PATCH 05/12] =?UTF-8?q?=F0=9F=91=B7=20Fix=20indentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 261785cb2..8f85fbae8 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -22,19 +22,19 @@ jobs: - name: 👷 Build and install checkout run: | pip install . - - name: 📧 Discord success notification - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '☑️ Test install on Python 2 for `master` was successful' - - name: 📧 Discord failure notification - if: failure() - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '🚫 Test install on Python 2 for `master` failed' + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for `master` was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for `master` failed' install-latest: runs-on: ubuntu-latest @@ -46,16 +46,16 @@ jobs: - name: 👷 Build and install latest from PyPI run: | pip install OctoPrint - - name: 📧 Discord success notification - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '☑️ Test install on Python 2 for latest release was successful' - - name: 📧 Discord failure notification - if: failure() - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '🚫 Test install on Python 2 for latest release failed' + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for latest release was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for latest release failed' From d71b8e9e82800ae6df70c01690efb0dfe217f153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 7 May 2020 13:39:23 +0200 Subject: [PATCH 06/12] =?UTF-8?q?=F0=9F=92=AC=20Update=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added Discord link & updated installation instructions --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c070609ef..b040e5cbb 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ ![GitHub release](https://img.shields.io/github/release/OctoPrint/OctoPrint.svg?colorB=brightgreen) [![Travis build status](https://img.shields.io/travis/OctoPrint/OctoPrint.svg)](https://travis-ci.org/OctoPrint/OctoPrint) -[![Discourse topics](https://img.shields.io/discourse/https/community.octoprint.org/users.svg)](https://community.octoprint.org) -[![IRC](https://img.shields.io/badge/chat-on%20irc-brightgreen.svg)](https://chat.octoprint.org) +[![Forum](https://img.shields.io/discourse/https/community.octoprint.org/users.svg)](https://community.octoprint.org) +[![Discord](https://img.shields.io/discord/704958479194128507?label=discord)](https://discord.octoprint.org) [![Twitter Follow](https://img.shields.io/twitter/follow/OctoPrint3d.svg?style=social&label=Follow)](https://twitter.com/OctoPrint3d) @@ -15,7 +15,7 @@ Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=gi The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). -The official IRC channel is [#octoprint on freenode](https://chat.octoprint.org). Its logs can be found [here](https://freenode.logbot.info/octoprint). +An invite to the Discord server can be found at [discord.octoprint.org](https://discord.octoprint.org). The FAQ can be accessed by following [faq.octoprint.org](https://faq.octoprint.org/?utm_source=github&utm_medium=readme). @@ -63,10 +63,14 @@ and runtime environment are the following (as *regular user*, please keep your hands *off* of the `sudo` command here!) - this assumes you already have Python 2.7, 3.6 or 3.7, pip and virtualenv set up on your system: +1. Create a user-owned virtual environment therein: `virtualenv venv`. +2. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install OctoPrint` + +Or alternatively, for an install from source: + 1. Checkout OctoPrint: `git clone https://github.com/OctoPrint/OctoPrint.git` 2. Change into the OctoPrint folder: `cd OctoPrint` -3. Create a user-owned virtual environment therein: `virtualenv venv` if your system default python version is - python 2.7, otherwise you need to specify the version explicitly, e.g. `virtualenv --python=python2.7 venv`. +3. Create a user-owned virtual environment therein: `virtualenv venv` 4. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install .` You may then start the OctoPrint server via `/path/to/OctoPrint/venv/bin/octoprint`, see [Usage](#usage) @@ -78,11 +82,7 @@ access control as necessary. ## Dependencies OctoPrint depends on a few python modules to do its job. Those are automatically installed when installing -OctoPrint via `pip`: - - pip install . - -You should do this every time after pulling from the repository, since the dependencies may have changed. +OctoPrint via `pip`. OctoPrint currently supports Python 2.7, 3.6 and 3.7. @@ -90,7 +90,7 @@ OctoPrint currently supports Python 2.7, 3.6 and 3.7. Running the pip install via - pip install . + pip install OctoPrint installs the `octoprint` script in your Python installation's scripts folder (which, depending on whether you installed OctoPrint globally or into a virtual env, will be in your `PATH` or not). The From 3fd88b4f1367c16eddeab4e2bab3fe0915a35043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 8 May 2020 15:28:35 +0200 Subject: [PATCH 07/12] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Switch=20to=20public=20discord=20for=20CI=20notification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 8f85fbae8..d6b2290db 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -24,17 +24,17 @@ jobs: pip install . - name: 📧 Discord success notification env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: - args: '☑️ Test install on Python 2 for `master` was successful' + args: '☑️ Test install on Python 2 for `OctoPrint/OctoPrint:master` was successful' - name: 📧 Discord failure notification if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} uses: Ilshidur/action-discord@master with: - args: '🚫 Test install on Python 2 for `master` failed' + args: '🚫 Test install on Python 2 for `OctoPrint/OctoPrint:master` failed' install-latest: runs-on: ubuntu-latest @@ -48,14 +48,14 @@ jobs: pip install OctoPrint - name: 📧 Discord success notification env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: - args: '☑️ Test install on Python 2 for latest release was successful' + args: '☑️ Test install on Python 2 for latest OctoPrint release was successful' - name: 📧 Discord failure notification if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} uses: Ilshidur/action-discord@master with: - args: '🚫 Test install on Python 2 for latest release failed' + args: '🚫 Test install on Python 2 for latest OctoPrint release failed' From 6751d683f30a4cff9018d5e0e699613582b83d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 May 2020 20:59:35 +0200 Subject: [PATCH 08/12] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Action=20to=20lock=20outdated=20issues=20&=20PRs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Anything that's been closed for over a year definitely is outdated. We really don't want people to play necromancer on ancient tickets, it just causes support overhead (having to explain that code has changed a ton since then and issue is likely a different one) or user frustration (no reply). --- .github/workflows/lock.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..5081dd077 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,22 @@ +name: 'Lock outdated issues & PRs' + +on: + schedule: + - cron: '0 * * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - name: 🔒 Lock issues & PRs closed over a year + uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-comment: > + This issue has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + pr-lock-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed/merged. + Please open a new issue for related bugs. From 1eb022e42b8cd5b66a37c4468bfdf39d4d89fd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 May 2020 21:02:09 +0200 Subject: [PATCH 09/12] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Trigger=20cron=20at=205min=20after=20every=20hour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 5081dd077..00d40cd56 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,7 +2,7 @@ name: 'Lock outdated issues & PRs' on: schedule: - - cron: '0 * * * *' + - cron: '5 * * * *' jobs: lock: From fd640c69625edb9f72d226618208b7467c0b21ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 May 2020 21:30:34 +0200 Subject: [PATCH 10/12] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Don't=20comment=20on=20locking,=20too=20spammy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At least not while processing the backlog. --- .github/workflows/lock.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 00d40cd56..dd989af48 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -12,11 +12,5 @@ jobs: uses: dessant/lock-threads@v2 with: github-token: ${{ github.token }} - issue-lock-comment: > - This issue has been automatically locked since there - has not been any recent activity after it was closed. - Please open a new issue for related bugs. - pr-lock-comment: > - This pull request has been automatically locked since there - has not been any recent activity after it was closed/merged. - Please open a new issue for related bugs. + issue-lock-comment: '' + pr-lock-comment: '' From 499b9130dd6d5479ea69288eb2fb78f1a1b0c530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 May 2020 21:41:29 +0200 Subject: [PATCH 11/12] =?UTF-8?q?=F0=9F=92=9A=20Ignore=20flake8=20F523=20f?= =?UTF-8?q?or=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We didn't change any code between the last working build and the current state since this is the master branch, so stop complaining. We'll fix this in maintenance/1.4.1 in one way or the other. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b1f687f3e..f22281c11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ install: - pip install -e .[develop] script: - test -n "$RUN_FLAKE8" || pytest -- test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401 src/ tests setup.py +- test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401,F523 src/ tests setup.py sudo: false git: depth: 250 From a9340754074554553bacf3e865819baaa52f28ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 1 Jun 2020 15:35:14 +0200 Subject: [PATCH 12/12] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Reduce=20locking=20runs=20to=20once=20per=20day?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we've processed our backlog, once per day totally suffices. --- .github/workflows/lock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index dd989af48..45a57141c 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,7 +2,7 @@ name: 'Lock outdated issues & PRs' on: schedule: - - cron: '5 * * * *' + - cron: '0 0 * * *' jobs: lock: