-
Notifications
You must be signed in to change notification settings - Fork 633
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
Use, when possible, an ENV var to get the installation type #8500
Merged
jredrejo
merged 6 commits into
learningequality:release-v0.15.x
from
jredrejo:installation_type
Nov 19, 2021
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
82d8c92
Use, when possible, an ENV var to get the installation type
7b022ba
add uwsgi
8ab172c
add forgotten file to git
2c8d77d
fine tunning app installation method names
aba4442
Match specs to installation types for telemetry
1b19e20
fix test & add KOLIBRI_INSTALLER_VERSION envvar
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains 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,28 @@ | ||
""" | ||
This module contains constants representing the type of "installers" used to install Kolibri. | ||
""" | ||
from __future__ import unicode_literals | ||
|
||
APK = "apk" | ||
DEB = "deb" | ||
FLATPAK = "flatpak" | ||
GNOME = "gnome" | ||
KOLIBRI_SERVER = "kolibriserver" | ||
MACOS = "mac" | ||
PEX = "pex" | ||
WHL = "whl" | ||
WINDOWS = "windows" | ||
WINDOWS_APP = "windowsapp" | ||
|
||
install_type_map = { | ||
APK: "apk - {}", | ||
DEB: "deb kolibri - {}", | ||
FLATPAK: "Flatpak - {}", | ||
GNOME: "GNOME - {}", | ||
KOLIBRI_SERVER: "deb kolibri-server - {}", | ||
MACOS: "Mac - {}", | ||
PEX: "pex", | ||
WHL: "whl", | ||
WINDOWS: "Windows - {}", | ||
WINDOWS_APP: "Windows App - {}", | ||
} |
This file contains 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this line didn't raise an issue before, but it's now causing a python 2 syntax check flake8 failure:
https://github.com/indirectlylit/kolibri/runs/4301449205?check_suite_focus=true
Perhaps this should be:
Weirdly, I see the linting error in my fork but not in the LE org repo.
cc @jredrejo @rtibbles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, the check is skipped in LE but not in my repo:
https://github.com/learningequality/kolibri/runs/4301448839?check_suite_focus=true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh - probably because the path match check looks back through the history of runs (which are constrained to a specific fork) so because the learning equality repo had a test run that had previously passed for this set of files, it doesn't run again, whereas your fork didn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filed a follow-up here: #8772
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird, that's not new code, it has been there since kolibri 0.11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is more likely a floating linter version issue than an issue with the CI setup.