-
d58fee2a
by Ivo De Decker
at 2020-04-13T14:14:40+00:00
run-tests: allow running a single test
-
e219d18e
by Ivo De Decker
at 2020-04-13T16:58:00+00:00
run-ci: make sure CI_NODE_* vars are defined
-
8600b9d1
by Ivo De Decker
at 2020-04-13T18:08:55+00:00
run-ci: use variables for version specific commands
-
2151ef66
by Ivo De Decker
at 2020-04-13T18:09:41+00:00
run-ci: run python2 test from run-ci instead of debian/rules
This was already the case for the python3 tests.
-
eb552563
by Ivo De Decker
at 2020-04-13T18:10:08+00:00
run-ci: run individual tests
-
4e7df113
by Ivo De Decker
at 2020-04-13T18:10:08+00:00
run-ci: support parallel tests
-
a0d9083e
by Ivo De Decker
at 2020-04-13T18:28:20+00:00
run-ci: add coverage data to artifacts
-
e0bde8de
by Ivo De Decker
at 2020-04-13T20:10:01+00:00
run-ci: log timestamps
-
bf6ebff8
by Ivo De Decker
at 2020-04-13T20:10:01+00:00
Add script to collect coverage info from tests
-
c1ace1cc
by Ivo De Decker
at 2020-04-13T20:10:01+00:00
Run 5 parallel ci jobs
-
5a3e4a45
by Joerg Jaspert
at 2020-04-13T22:45:47+02:00
Merge branch 'pr-196'
* pr-196:
Run 5 parallel ci jobs
Add script to collect coverage info from tests
run-ci: log timestamps
run-ci: add coverage data to artifacts
run-ci: support parallel tests
run-ci: run individual tests
run-ci: run python2 test from run-ci instead of debian/rules
run-ci: use variables for version specific commands
run-ci: make sure CI_NODE_* vars are defined
run-tests: allow running a single test
-
7cbac22e
by Ivo De Decker
at 2020-04-13T21:02:28+00:00
Keep logs in coverage job and expire other artifacts
-
d7297690
by Felix Lechner
at 2020-04-16T10:48:44-07:00
For FTP auto rejection of non UTF-8 filenames, add a renamed Lintian tag but retain the old one.
Adds a renamed Lintian tag to dak's FTP auto-reject profile. Retains
the old tag until the transition is complete.
Here is more information about the changes in Lintian:
To resolve Bug#956723, Lintian recently introduced two new tags that
relate to files whose names are not valid UTF-8, and presumably use a
national encoding:
upstream-file-without-utf8-name (files in orig.tar.gz)
patched-file-without-utf8-name (files created in Debian patches)
You can find the relevant commit here:
https://salsa.debian.org/lintian/lintian/-/commit/bc81771b388cbf53cf7ecb0e530108212d891565
There already was a corresponding tag for installation packages, but
it was named very broadly. That tag was renamed and is now similar to
the other two:
shipped-file-without-utf8-name (files in .deb or .udeb packages)
The commit is here:
https://salsa.debian.org/lintian/lintian/-/commit/b2fbc44f68473f7e2e74857d3a4c623d921ccdc7
This merge request was not tested in any way.
-
3ac5943a
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
process_commands: read commands from specified dir
The old code read the commands in the current dir.
-
23cb28b8
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: switch to new next() syntax
-
fd202fb3
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/generate_index_diffs.py: use True instead of 1
-
758a98c5
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/transitions.py: use 'isinstance()' instead of 'type() =='
-
f2133046
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/show_deferred.py: replace map()
-
9efcda41
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/show_new.py: replace filter()
-
a5ce8386
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace long() with int()
python3 doesn't have long, only int, and int works just as well in
python2.
-
2137a6b5
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
Add dependency on python{,3}-six
In practice, this is a no-op, because python{,3}-debian already depends
on it, but it's good to explicitly document the need.
-
138ae510
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace raw_input with six.moves.input
Explicitly call six.moves.input() instead of importing the function and
calling it as input(), to avoid running the unsafe input() under python2
if the import would be lost accidentally.
-
6e71a770
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/srcformats.py: use six to specify metaclass
-
095045ac
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/import_repository.py: use six for urlopen() call
-
9068eb88
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace iter{items,keys,values} with six function
-
16f6f588
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
Explicitly turn {items,keys,values}() into list where needed
In python3, these are iterators, which is fine in most situations. This
commit changes that places where it's not.
-
5d3b32b8
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak admin suite: force utf-8 using six.ensure_text
The type of the data depends on the python version. Just using decode()
doesn't work in python3.
-
d2e66fe6
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: replace translate() calls
The second argument to translate() is not available for str in python3.
-
d26d67d3
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: pass binary data to SignedFile
-
72af8f48
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/daklog.py: add log_traceback function
-
17674cf7
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/process_commands.py: improve exception logging
For CommandErrors (which are raised by daklib/commands.py), the log
message should be enough, but for other exceptions (which we don't
expect), a traceback is more useful to find out what's wrong.
-
b3b9ffcf
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
daklib/utils.py: write mail files as text
-
400066ea
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
daklib/rm.py: format date in python
-
b7a0ac6e
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
replace unicode() calls with six function
-
cfe1e0be
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
daklib/dakmultiprocessing.py: return traceback for exceptions
-
33b876cf
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
dak/show_new.py: handle exceptions
-
a2bd0a8d
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
examine_package: change handling of encodings and IO
This change should work in both python2 and python3.
Handle all data as str() in the functions that generate the data.
All functions in examine_package now return data, instead of writing it
themselves.
Don't replace stdout with the less fd, but write directly to less in
examine_package and process_new.
Force all output to less to be binary using six (which always uses
utf-8).
Dxplicitly open file as binary in strip_pgp_signature.
Write the html output to file as text in show_new.
-
e70579d5
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
load_keys: make sure data from gpg is str
-
6e558c85
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/dbconn.py: set database connection to utf-8 for python3
-
35c2c5d5
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/checks.py: use six function in check_fields_for_valid_utf8
-
2f95fde0
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/utils.py: handle encoding in gpg_get_key_addresses using six
-
800503da
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/dbconn.py: use textutils.force_to_utf8 for contents filename
-
fe40a27b
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: define DAK_CI_OUTPUT_DIR
-
7fe8fe5a
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests/common: add function to save ci artifacts
-
26a8d99d
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests/dak-coverage.sh: fix coverage when working dir changes
-
263de962
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
gitlab-ci: coverage job only uses py2 data
Avoids failure if the py3 job is manually started.
-
eca7a4fc
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: add annotated coverage report
-
80c0054a
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: don't run 2to3, it's not needed anymore
-
d0101326
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests: add check_output function
-
844cc634
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 0005-encoding: add extra checks
- run make-maintainers
- run queue-report
- add rdep check to dak rm
- test sending mail
- run show-new
- run check in process-new
-
f9aaeb44
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
tests: 2003-c-s-propup: remove first dinstall call
This test is the longest in the testsuite. The dinstall call for the
empty archive already runs in other tests, and removing it doesn't
affect the rest of the test.
-
c9d32297
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Testsuite fixtures: change some uploaders and add extra package
Re-use most of the existing packages, but change the uploader for the dm
test. For the other tests, all keys are treated as DDs, so it doesn't
change anything.
-
12c6192c
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Add test 0006-dm-commands
Test dm acls and commands.
-
89d55f0b
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 2000-dinstall: run make-changelog
-
68a76a37
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 2001-cruft: add cruft report
This test was also renamed from 2001-nviu.
-
a1c34baf
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
ci: remove stretch tests
We're not running stretch anymore. Also, some of the six functions are
not available on stretch.
-
08001a31
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Always run python3 tests, they succeed now.
The unit tests are run together with the other tests, so we don't need
to run them separately anymore.
-
78c4cc59
by Joerg Jaspert
at 2020-04-23T22:14:30+02:00
Salsa, we like. Go there, merge requests do.
-
8f5942aa
by Ivo De Decker
at 2020-04-28T19:47:19+00:00
dak rm: allow removal of binaries without source
When removing binaries from a source, do the removal, even if the source is
not in the suite.
Normally, if a binary is in the suite, the source of that binary should also
be in the suite. However, it seems that this is not always the case. As an
example, some binaries that were prop-uped into unstable don't seems to have
the corresponding source in unstable.
This change allow dak rm to remove these binaries.
-
e1488728
by Joerg Jaspert
at 2020-05-02T22:34:55+02:00
Merge branch 'utf8-filenames'
* utf8-filenames:
For FTP auto rejection of non UTF-8 filenames, add a renamed Lintian tag but retain the old one.
-
a33ab970
by Joerg Jaspert
at 2020-05-02T22:44:48+02:00
Merge branch 'pr-199'
* pr-199: (44 commits)
Always run python3 tests, they succeed now.
ci: remove stretch tests
test 2001-cruft: add cruft report
test 2000-dinstall: run make-changelog
Add test 0006-dm-commands
Testsuite fixtures: change some uploaders and add extra package
tests: 2003-c-s-propup: remove first dinstall call
test 0005-encoding: add extra checks
integration-tests: add check_output function
run-ci: don't run 2to3, it's not needed anymore
run-ci: add annotated coverage report
gitlab-ci: coverage job only uses py2 data
integration-tests/dak-coverage.sh: fix coverage when working dir changes
integration-tests/common: add function to save ci artifacts
run-ci: define DAK_CI_OUTPUT_DIR
daklib/dbconn.py: use textutils.force_to_utf8 for contents filename
daklib/utils.py: handle encoding in gpg_get_key_addresses using six
daklib/checks.py: use six function in check_fields_for_valid_utf8
daklib/dbconn.py: set database connection to utf-8 for python3
load_keys: make sure data from gpg is str
...
-
c55f7234
by Joerg Jaspert
at 2020-05-02T22:46:14+02:00
Merge branch 'pr-200'
* pr-200:
dak rm: allow removal of binaries without source
-
74590f45
by Joerg Jaspert
at 2020-05-02T23:29:04+02:00
Merge branch 'master' into deploy
* master: (58 commits)
dak rm: allow removal of binaries without source
Salsa, we like. Go there, merge requests do.
Always run python3 tests, they succeed now.
ci: remove stretch tests
test 2001-cruft: add cruft report
test 2000-dinstall: run make-changelog
Add test 0006-dm-commands
Testsuite fixtures: change some uploaders and add extra package
tests: 2003-c-s-propup: remove first dinstall call
test 0005-encoding: add extra checks
integration-tests: add check_output function
run-ci: don't run 2to3, it's not needed anymore
run-ci: add annotated coverage report
gitlab-ci: coverage job only uses py2 data
integration-tests/dak-coverage.sh: fix coverage when working dir changes
integration-tests/common: add function to save ci artifacts
run-ci: define DAK_CI_OUTPUT_DIR
daklib/dbconn.py: use textutils.force_to_utf8 for contents filename
daklib/utils.py: handle encoding in gpg_get_key_addresses using six
daklib/checks.py: use six function in check_fields_for_valid_utf8
...