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

Upstream rebase #31

Closed
wants to merge 113 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
79592ca
[process] Capture sched debug and features
jcastill Jun 21, 2024
a79b866
[container_log] Add rotated logs support
Akrog Jun 19, 2024
36841a0
[tests] Disable verbose stdout killing avocado performance
pmoravec Jul 3, 2024
6decb61
[krb5] Additon of keytab Validation
BeRahul Jun 28, 2024
867075f
[snap] Build snap with core24
arif-ali Apr 29, 2024
b7df797
[snap,workflow] snap build fix for core24
arif-ali Jul 12, 2024
e98ae54
[ceph_mds] Add required path parameter to `dump tree`
slapcat Jul 11, 2024
dce7ff1
[policies] Fallback to /lib/modules/*/config
champtar Jul 18, 2024
1b02085
[microcloud] Added new plugin support for MicroCloud.
alanbach Jul 17, 2024
0fad974
[general/pylint] re-enable W0105: pointless-string-statement
pponnuvel Jul 20, 2024
cad017e
[man] Fix man page lintian issue from Debian packaging
arif-ali Jul 14, 2024
524273a
[pylint] Re-enable useless-parent-delegation
pponnuvel Jul 20, 2024
052c431
[sunbeam_hypervisor] Fix obfuscation for ceilometer and hooks.log
arif-ali Jul 18, 2024
89a2c20
[pylint] Re-enable W0622: redefined-builtin
pponnuvel Jul 20, 2024
9f871d2
[pylint] Re-enable useless-return
pponnuvel Jul 21, 2024
d21d558
[Ceph/rgw] Expand RGW data collection
pponnuvel Jul 20, 2024
be489ae
[pylint] Re-enable redefined-outer-name
pponnuvel Jul 20, 2024
1c88cbd
[pylint] re-enable no-else-return and inconsistent-return-statements
pponnuvel Jul 21, 2024
6fe68dd
[pylint] Re-enable assignment-from-no-return
pponnuvel Jul 21, 2024
f836107
[pam] Capture authselect config file
jcastill Jul 16, 2024
9578727
[pylint] Re-enable unused-{variable, argument}
pponnuvel Jul 23, 2024
1c9a440
[networking] Capture nmstatectl commands
jcastill Jul 26, 2024
d10a1a6
[pylint] re-enable checks
pponnuvel Jul 24, 2024
fb4cbd8
[memory] Capture content of /sys/kernel/memory/lru_gen
jcastill Jul 30, 2024
e88916f
[pylint] Re-enable consider-using-dict-items
pponnuvel Jul 24, 2024
b5403ae
[pylint] Enable consider-using-set-comprehension
pponnuvel Jul 30, 2024
d3a2169
[pylint] re-enable the following checks
pponnuvel Jul 31, 2024
be1ad32
[pylint] re-enable consider-using-{with, f-string}
pponnuvel Jul 23, 2024
44eb4ac
[pylint] Re-enable the following checks
pponnuvel Aug 2, 2024
992fda9
[maas] improve/refactor MAAS plugin
troyanov Jun 19, 2024
938aff3
[pylint] Fix redefined-builtin in maas plugin
pponnuvel Aug 8, 2024
36ad771
[pylint] Fix pylint issues
pponnuvel Aug 3, 2024
0eb082a
[pylint] Fix arguments-renamed and arguments-differ
pponnuvel Aug 8, 2024
e067bfd
[common] Fix a bug in f-string usage
pponnuvel Aug 8, 2024
d3a9de6
[lustre] lnetctl net show more verbose
utopiabound Aug 12, 2024
ed0793b
[pylint] Fix unspecified-encoding
pponnuvel Aug 11, 2024
1086911
[man] Fix man page lintian issues
arif-ali Jul 16, 2024
95dbbc2
[pylint] Fixes more pylint issues
pponnuvel Aug 9, 2024
db95a3e
[common] handle all_logs when snap package is installed
arif-ali Jun 21, 2024
20dcab8
[global] Change license to GPL-2.0 across all files
arif-ali Jul 18, 2024
d114e83
[pylint] Re-enable unnecessary-{negation,dunder-call,comprehension,la…
pponnuvel Jul 21, 2024
d9bf391
[policies] Add CloudLinux policy
eabdullin1 Jul 4, 2024
36e0462
Update cloudlinux.py
eabdullin1 Jul 24, 2024
ff464bd
[cloudlinux] Revert license header change
TurboTurtle Aug 15, 2024
fc0aa56
[cloudlinux] Correct pylint encoding error
TurboTurtle Aug 15, 2024
5fca348
[scsi] Capture the WWN for disks in the output of lsscsi
jcastill Aug 15, 2024
a2b9c4c
[build] Bump version to 4.8.0
TurboTurtle Aug 17, 2024
e81bdb4
[pylint] Fix abstract-method and unnecessary-pass
pponnuvel Aug 14, 2024
d85c080
[pylint] Fix consider-iterating-dictionary
pponnuvel Aug 18, 2024
a914131
[pylint] Fix logging-not-lazy
pponnuvel Aug 20, 2024
c3b8bbc
[redhat] Fix return of function check_file_too_big()
jcastill Aug 19, 2024
351160a
[pylint] Fix raise-missing-from
pponnuvel Aug 18, 2024
86fc819
[Plugin] Collect exact filesizes in add_dir_listing
pmoravec Aug 22, 2024
9aaf5ca
[policies] Obfuscate upload password in `get_upload_url_string()`
swarajpande5 Aug 23, 2024
8b0d86f
[cleaner] Check if keyword exists in dataset before obfuscation
swarajpande5 Aug 25, 2024
3d58e94
[processor] Add a timeout to turbostat collection
TurboTurtle Aug 25, 2024
3886534
[report] Revert changed formatting of plugin+presets lists
pmoravec Aug 26, 2024
e6bda22
[specfile] specify GPL v2 only
sandrobonazzola Sep 2, 2024
9740050
[snap] specify GPL v2 only
sandrobonazzola Sep 2, 2024
9b59835
[specfile] drop python-rpm dependency
sandrobonazzola Sep 2, 2024
d3a50e1
[kea] New plugin for kea dhcp/ddns server
jcastill Jun 6, 2024
e355ded
[bird] Add new plugin
TurboTurtle Aug 28, 2024
498ce94
[networking] Add devlink commands from #1541
TurboTurtle Aug 28, 2024
cc88008
[plugins] Apply --skip-files also to destination of symlinks
pmoravec Aug 30, 2024
8fab338
[sudo] Capture sudo log files
jcastill Aug 27, 2024
a946343
[leapp] improve plugin enablement and add more collected files
evgeni Sep 11, 2024
7009f22
[report] print plugname instead of plugin tuple
pmoravec Sep 12, 2024
a48c0eb
[bootc] Add new plugin bootc
jcastill Sep 5, 2024
5177384
[block] Enhance LUKS capture in block plugin
dwolstroRH Sep 13, 2024
a0035b6
[Policy] Consolidate check() across policies
TurboTurtle Aug 28, 2024
bb381c0
[pylint] Disable alert for too-many-positional-arguments
jcastill Sep 24, 2024
0ab183d
[containerd] record deprecation warnings
samuelkarp Sep 24, 2024
60356d6
[plugins] Obfuscate http URL credentials
pmoravec Sep 27, 2024
dde4db5
Add ALL_PROXY and NO_PROXY to collected env_vars
pafernanr Sep 28, 2024
96e4d79
[pulpcore] Don't collect args columns from tasks tables
pmoravec Sep 24, 2024
b21be0b
[vmware] Enable vmware plugin support on Ubuntu
adam-vest Oct 4, 2024
757d2b3
[nvidia] Capture more nvidia commands
jcastill Sep 12, 2024
4b17f9f
[ceph] update ceph commands collection
pponnuvel Oct 5, 2024
5cafeee
[vdo] Capture more information about vdo volumes
jcastill Jul 16, 2024
3fa3a33
[cgroups] Collect cgroup information per process
jcastill Oct 5, 2024
a642018
[build] Bump version to 4.8.1
pmoravec Oct 15, 2024
37e58fc
Add flask to git actions
filanov Jul 6, 2024
b1d9a06
Add deb build to git actions
filanov Jul 7, 2024
f9a165d
Add rpm build to git actions
filanov Jul 7, 2024
4c068b0
Move debian build to doca-sosreport
filanov Jul 7, 2024
0bc22b9
change RPM build to build doca-sosreport
filanov Jul 7, 2024
df635b0
Adding unit tests to git actions
filanov Jul 7, 2024
fbd060d
Update sphinx version
filanov Jul 8, 2024
c7097a8
Fix debian control typo
filanov Jul 8, 2024
50d91c9
Fix rpm conflict with sos
filanov Jul 9, 2024
93f112a
Resolve rpm install conflicts
filanov Jul 9, 2024
7167f66
Revert "Resolve rpm install conflicts"
roidayan Jul 10, 2024
9e92548
sos.spec: Obsolete any existing sos or sos-collector package
roidayan Jul 10, 2024
003bf8d
Add RDMA plugin
filanov Jul 11, 2024
960ce7b
Add doca openvswitch support
filanov Jul 11, 2024
d2dc7ae
Add mlx5_core plugin
dickmanmaor Jul 18, 2024
2ace5b5
adding coverity files
ekhazen Jul 14, 2024
a7b0d3d
Revert "Add mlx5_core plugin"
dickmanmaor Jul 22, 2024
0192074
Fix openvswitch on deb systems
filanov Aug 1, 2024
7be87a0
Add devlink health to networking plugin
filanov Sep 11, 2024
26adc9e
Add HBN plugin
filanov Sep 9, 2024
989ef85
Revert "Revert "Add mlx5_core plugin""
dickmanmaor Sep 17, 2024
9605d5e
[openvswitch] Add additional dpctl info commands
dickmanmaor Sep 17, 2024
db65aed
[openvswitch] Add DOCA info commands
dickmanmaor Sep 17, 2024
b33fbb6
mellanox firmware fixes
filanov Sep 3, 2024
5ecd687
Add RoCE plugin
filanov Sep 8, 2024
e46a554
fix mellanox_firmware device mapping
filanov Sep 30, 2024
edcd0b5
Add meter commands
dickmanmaor Oct 13, 2024
a8c9d4f
[openvswitch] Add mirror list command
dickmanmaor Oct 14, 2024
54b06aa
Fix rdma plugin package
filanov Oct 30, 2024
8aefcc8
fix mlx configuration
filanov Oct 30, 2024
559661a
[HBN] Add additional hbn related commands and log files.
hareeshpc Oct 23, 2024
918e521
Merge branch 'main' into upstream-rebase
filanov Nov 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ env:
UBUNTU_PRIOR_IMAGE_NAME: "ubuntu-2204-jammy-v20240501"
UBUNTU_PRIOR2_IMAGE_NAME: "ubuntu-2004-focal-v20240426"
UBUNTU_PRIOR3_IMAGE_NAME: "ubuntu-1804-bionic-v20240116a"
UBUNTU_SNAP_IMAGE_NAME: "ubuntu-2204-jammy-v20240501"
UBUNTU_SNAP_IMAGE_NAME: "ubuntu-2404-noble-amd64-v20240423"
UBUNTU_DEVEL_FAMILY_NAME: "ubuntu-2410-amd64"

# Curl-command prefix for downloading task artifacts, simply add the
Expand All @@ -56,6 +56,7 @@ gcp_credentials: ENCRYPTED[!77d4c8251094346c41db63cb05eba2ff98eaff04e58c5d0e2a8e

# Run a simple lint on the community cluster
flake8_task:
skip: &man-changes-include "changesIncludeOnly('man/*')"
alias: "flake8_test"
name: "Flake8 linting test"
container:
Expand All @@ -66,6 +67,7 @@ flake8_task:
flake_script: tox -e flake8

pylint_task:
skip: *man-changes-include
alias: "pylint_test"
name: "pylint linting test"
container:
Expand All @@ -77,6 +79,7 @@ pylint_task:
# breaks/changes in common modules. This is not meant to check any of the actual
# collections or archive integrity.
py_break_task:
skip: *man-changes-include
alias: "py_break"
name: "Breakage test python-$PY_VERSION"
container:
Expand All @@ -92,6 +95,7 @@ py_break_task:

# Make sure a user can manually build an rpm from the checkout
rpm_build_task:
skip: *man-changes-include
alias: "rpm_build"
name: "rpm Build From Checkout - ${BUILD_NAME}"
gce_instance: &standardvm
Expand Down Expand Up @@ -130,6 +134,7 @@ rpm_build_task:

# Make sure a user can manually build a deb from the checkout
deb_build_task:
skip: *man-changes-include
alias: "deb_build"
name: "deb Build From Checkout"
gce_instance:
Expand All @@ -151,6 +156,7 @@ deb_build_task:

# Make sure a user can manually build a snap from the checkout
snap_build_task:
skip: *man-changes-include
alias: "snap_build"
name: "snap Build From Checkout"
gce_instance:
Expand All @@ -175,6 +181,7 @@ snap_build_task:

# Run the stage one (no mocking) tests across all distros on GCP
report_stageone_task:
skip: *man-changes-include
alias: "stageone_report"
name: "Report Stage One - $BUILD_NAME"
depends_on:
Expand Down Expand Up @@ -251,6 +258,7 @@ report_stageone_task:
path: "sos-fail-logs.tar"

report_stageone_daily_task:
skip: *man-changes-include
alias: "stageone_daily_report"
name: "Report Stage One - ${UBUNTU_DEVEL_FAMILY_NAME}"
allow_failures: true
Expand All @@ -271,6 +279,7 @@ report_stageone_daily_task:

# IFF the stage one tests all pass, then run stage two for latest distros
report_stagetwo_task:
skip: *man-changes-include
alias: "stagetwo_report"
name: "Report Stage Two - $BUILD_NAME"
depends_on: stageone_report
Expand All @@ -296,6 +305,7 @@ report_stagetwo_task:
log_artifacts: *logs

report_stagetwo_daily_task:
skip: *man-changes-include
alias: "stagetwo_daily_report"
name: "Report Stage Two - ${UBUNTU_DEVEL_FAMILY_NAME}"
allow_failures: true
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
doca-sosreport (4.8.1) noble; urgency=medium

* rebase on top of 4.8.1 upstream

-- Michael Filanov <[email protected]> Thu, 24 Nov 2024 14:40:01 +0100

doca-sosreport (4.8.0-1) unstable; urgency=low

* replace sosreport with doca-sosreport
Expand Down
24 changes: 13 additions & 11 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ Upstream-Name: sosreport
Upstream-Contact: Jake Hunsaker <[email protected]>
Source: https://github.com/sosreport/sos

License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
Files: *
Copyright: (C) 2012-2017 Bryn M. Reeves
(C) 2007-2024 Red Hat, Inc.
(C) 2012-2024 Canonical Ltd.
License: GPL-2

License: GPL-2
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2.
.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
This application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
USA.
.
On Debian systems, the complete text of the GNU General Public
License, version 2, can be found in /usr/share/common-licenses/GPL-2.
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
import sos


# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -52,16 +51,16 @@

# General information about the project.
project = 'SoS'
copyright = '2014, Bryn Reeves'
project_copyright = '2014, Bryn Reeves'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '4.7.2'
version = '4.8.1'
# The full version, including alpha/beta/rc tags.
release = '4.7.2'
release = '4.8.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions man/en/sos-clean.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH SOS CLEAN 1 "Thu May 21 2020"
.TH SOS_CLEAN 1 "Thu May 21 2020"
.SH NAME
sos clean - Obfuscate sensitive data from one or more sos reports
sos_clean, sos_mask \- Obfuscate sensitive data from one or more sos reports
.SH SYNOPSIS
.B sos clean TARGET [options]
[\-\-domains]
Expand Down
4 changes: 2 additions & 2 deletions man/en/sos-collect.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.TH SOS COLLECT 1 "April 2020"
.TH SOS_COLLECT 1 "April 2020"

.SH NAME
sos collect \- Collect sos reports from multiple (cluster) nodes
sos_collect \- Collect sos reports from multiple (cluster) nodes
.SH SYNOPSIS
.B sos collect
[\-a|\-\-all\-options]
Expand Down
4 changes: 2 additions & 2 deletions man/en/sos-help.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH SOS HELP 1 "Fri Nov 05 2021"
.TH SOS_HELP 1 "Fri Nov 05 2021"
.SH NAME
sos help - get detailed help information on sos commands and components
sos_help \- get detailed help information on sos commands and components
.SH SYNOPSIS
.B sos help TOPIC

Expand Down
8 changes: 4 additions & 4 deletions man/en/sos-report.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH SOS REPORT 1 "Mon Mar 25 2013"
.TH SOS_REPORT 1 "Mon Mar 25 2013"
.SH NAME
sos report \- Collect and package diagnostic and support data
sos_report \- Collect and package diagnostic and support data
.SH SYNOPSIS
.B sos report
[-l|--list-plugins]\fR
Expand Down Expand Up @@ -313,7 +313,7 @@ a timeout for a specific plugin, use the 'timeout' plugin option available to
all plugins - e.g. '-k logs.timeout=600'.

The plugin-specific timeout option will override this option. For example, using
\'--plugin-timeout=60 -k logs.timeout=600\' will set a timeout of 600 seconds for
\(aq--plugin-timeout=60 -k logs.timeout=600' will set a timeout of 600 seconds for
the logs plugin and 60 seconds for all other enabled plugins.
.TP
.B \--cmd-timeout TIMEOUT
Expand Down Expand Up @@ -382,7 +382,7 @@ to prevent sos report working dir to consume all free disk space. No plugin data
is available at the end.

Plugins will be collected sequentially, size of collected files and commands outputs
will be calculated and the plugin files will be immediatelly deleted prior execution
will be calculated and the plugin files will be immediately deleted prior execution
of the next plugin. This still can consume whole free disk space, though.

Please note, size estimations may not be accurate for highly utilized systems due to
Expand Down
47 changes: 24 additions & 23 deletions plugins_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
PLUGDIR = 'sos/report/plugins'

plugs_data = {} # the map of all plugins data to collect
plugcontent = '' # content of plugin file just being processed


# method to parse an item of a_s_c/a_c_o/.. methods
Expand All @@ -42,11 +41,11 @@ def add_valid_item(dest, item):
return


# method to find in `plugcontent` all items of given method (a_c_s/a_c_o/..)
# method to find all items of given method (a_c_s/a_c_o/..) in plugin content,
# split by comma; add each valid item to the `dest` list
def add_all_items(method, dest, wrapopen=r'\(', wrapclose=r'\)'):
def add_all_items(method, dest, plugfd, wrapopen=r'\(', wrapclose=r'\)'):
regexp = f"{method}{wrapopen}(.*?){wrapclose}"
for match in re.findall(regexp, plugcontent,
for match in re.findall(regexp, plugfd,
flags=re.MULTILINE | re.DOTALL):
# tuple of distros ended by either (class|from|import)
if isinstance(match, tuple):
Expand Down Expand Up @@ -90,30 +89,32 @@ def add_all_items(method, dest, wrapopen=r'\(', wrapclose=r'\)'):
'journals': [],
'env': [],
}
plugcontent = open(
os.path.join(PLUGDIR, plugfile)).read().replace('\n', '')
add_all_items(
"from sos.report.plugins import ",
plugs_data[plugname]['distros'],
wrapopen='',
wrapclose='(class|from|import)'
)
add_all_items("profiles = ", plugs_data[plugname]['profiles'], wrapopen='')
add_all_items("packages = ", plugs_data[plugname]['packages'], wrapopen='')
add_all_items("add_copy_spec", plugs_data[plugname]['copyspecs'])
add_all_items("add_forbidden_path", plugs_data[plugname]['forbidden'])
add_all_items("add_cmd_output", plugs_data[plugname]['commands'])
add_all_items("collect_cmd_output", plugs_data[plugname]['commands'])
add_all_items("add_service_status", plugs_data[plugname]['service_status'])
add_all_items("add_journal", plugs_data[plugname]['journals'])
add_all_items("add_env_var", plugs_data[plugname]['env'])
with open(os.path.join(PLUGDIR, plugfile),
encoding='utf-8').read().replace('\n', '') as pfd:
add_all_items(
"from sos.report.plugins import ", plugs_data[plugname]['distros'],
pfd, wrapopen='', wrapclose='(class|from|import)'
)
add_all_items("profiles = ", plugs_data[plugname]['profiles'],
pfd, wrapopen='')
add_all_items("packages = ", plugs_data[plugname]['packages'],
pfd, wrapopen='')
add_all_items("add_copy_spec", plugs_data[plugname]['copyspecs'], pfd)
add_all_items("add_forbidden_path",
plugs_data[plugname]['forbidden'], pfd)
add_all_items("add_cmd_output", plugs_data[plugname]['commands'], pfd)
add_all_items("collect_cmd_output",
plugs_data[plugname]['commands'], pfd)
add_all_items("add_service_status",
plugs_data[plugname]['service_status'], pfd)
add_all_items("add_journal", plugs_data[plugname]['journals'], pfd)
add_all_items("add_env_var", plugs_data[plugname]['env'], pfd)

# print output; if "csv" is cmdline argument, print in CSV format, else JSON
if (len(sys.argv) > 1) and (sys.argv[1] == "csv"):
print("plugin;url;distros;profiles;packages;copyspecs;forbidden;commands;"
"service_status;journals;env_vars")
for plugname in plugs_data.keys():
plugin = plugs_data[plugname]
for plugname, plugin in plugs_data.items():
# determine max number of lines - usually
# "max(len(copyspec),len(commands))"
# ignore 'sourcecode' key as it
Expand Down
53 changes: 1 addition & 52 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,65 +33,14 @@ disable=
R0913, # too-many-arguments
R0914, # too-many-locals
R0915, # too-many-statements
R0917, # too-many-positional-arguments
R1702, # too-many-nested-blocks
W0201, # attribute-defined-outside-init
W0511, # fixme
###################### VV things we should fix VV
W0613, # unused-argument
W0612, # unused-variable
R1705, # no-else-return
W0719, # broad-exception-raised
W1203, # logging-fstring-interpolation
W1406, # redundant-u-string-prefix
R1732, # consider-using-with
W1514, # unspecified-encoding
W0107, # unnecessary-pass
W0718, # broad-exception-caught
W0102, # dangerous-default-value
C0325, # superfluous-parens
E1111, # assignment-from-no-return
R1714, # consider-using-in
C0206, # consider-using-dict-items
W0221, # arguments-differ
R1711, # useless-return
R1720, # no-else-raise
R0205, # useless-object-inheritance
W3101, # missing-timeout
C0201, # consider-iterating-dictionary
R1719, # simplifiable-if-expression
W1201, # logging-not-lazy
W0707, # raise-missing-from
W0237, # arguments-renamed
E0606, # possibly-used-before-assignment
R1724, # no-else-continue
R1729, # use-a-generator
C0117, # unnecessary-negation
W0622, # redefined-builtin
W0212, # protected-access
R1728, # consider-using-generator
R1710, # inconsistent-return-statements
C1802, # use-implicit-booleaness-not-len
W0706, # try-except-raise
C1803, # use-implicit-booleaness-not-comparison
W0231, # super-init-not-called
C0123, # unidiomatic-typecheck
C0207, # use-maxsplit-arg
C2801, # unnecessary-dunder-call
E0203, # access-member-before-definition
E0611, # no-name-in-module
E0702, # raising-bad-type
E1101, # no-member
E1135, # unsupported-membership-test
R1703, # simplifiable-if-statement
R1718, # consider-using-set-comprehension
R1721, # unnecessary-comprehension
R1722, # consider-using-sys-exit
W0105, # pointless-string-statement
W0108, # unnecessary-lambda
W0222, # signature-differs
W0223, # abstract-method
W0246, # useless-parent-delegation
W0621, # redefined-outer-name
W0640, # cell-var-from-loop
W1509, # subprocess-popen-preexec-fn
W4701, # modified-iterating-list
13 changes: 6 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ description: |
primarily aimed at Linux distributions and other UNIX-like operating
systems.
grade: stable
base: core22
base: core24
confinement: classic
adopt-info: sos
license: GPL-2.0-or-later
license: GPL-2.0-only
environment:
PYTHONPATH: ${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages:${PYTHONPATH}
PYTHONPATH: ${SNAP}/lib/python3.12/site-packages:${SNAP}/usr/lib/python3/dist-packages:${PYTHONPATH}

parts:
sos:
Expand All @@ -24,13 +24,12 @@ parts:
build-packages:
- git
- python3
- snapcraft
- gettext
- python3-venv
stage-packages:
- python3.10-minimal
- libpython3.10-minimal
- libpython3.10-stdlib
- python3.12-minimal
- libpython3.12-minimal
- libpython3.12-stdlib
python-packages:
- pip
- setuptools
Expand Down
Loading
Loading