Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-05-02Add a ruby rebuilds reportJon Turney
Generalize the perl rebuild report logic to work for any version provide:
2023-04-07Add a test for mksetupiniJon Turney
2023-04-07Check that build-requires: lists valid package names, as wellJon Turney
Fix test data to satisfy that.
2023-04-06Add obsoletes_by to package summary pageJon Turney
It would be nice to also show rdepends and rbuild_depends, but those could be huge lists.
2023-03-16Make tests cover running reports as wellJon Turney
2023-03-12Revise trusted maintainer listJon Turney
Drop Eric Blake as inactive Add Achim Gratz
2023-03-12Add gitweb description to gitolite configJon Turney
Also add equivalent config keys for cgit
2023-02-19Add a test of mkgitoliteJon Turney
2023-02-19Improve hint parser error for embedded double quoteJon Turney
2023-02-19Revise maintainers moduleJon Turney
The data ordered by package name is the one we use the most often, so make that the primary form. Also use mtime_cache for the result of parsing cygwin-pkg-maint. v2: Fix mkgitolite and reports Keep maintainers in a list, not a set, because we need "first named maintainer". Don't write permissions lines with an empty list of names, as that's syntactically incorrect.
2023-01-19Propagate any error reading packages through mksetupiniJon Turney
At the moment, calm.process_relarea() is expected to keep going, although we might later fail due to package set validation problemss. (In particular tests just assume that we ignore various problematic packages, although we don't actually check that they are being rejected with the epxected problem)
2023-01-19Relax trusted maintainer restrictionsJon Turney
Rename orphanmaint -> trustedmaint Also revise and relax logic so it's more consistent: trusted maintainers can do these things via a shell, so don't stop doing them more easily via calm. Drop convulted "add trusted maintainers as maintainers of orphaned packages so they can upload them", and just check directly against trusted maintainer list to determine if an upload is permitted.
2022-11-26Ignore x86/Jon Turney
Stop looking in x86/ Stop generating setup.ini in x86/ Stop generating webpage for x86/
2022-11-26Change x86/ to x86_64/ in test dataJon Turney
2022-10-02Allow '_windows' pseudo-package to appear in requires:Jon Turney
Also add a test for that.
2022-10-02Handle a version-constraint appearing in requires:Jon Turney
Synthesize depends: from requires: in a way which doesn't mess up any version-constraint present while sorting. Future work: Store the depends: hint decomposed into a list, rather than a string which needs to get split everywhere it's used.
2022-10-02Drop internal uses of requires: hintJon Turney
Drop all remaining internal uses of requires: hint, use the (synthesized) depends: hint instead.
2022-10-02Drop reading putative 'depends:' hintJon Turney
There's never been anything that generates it, apart from internally from the requires: hint.
2022-10-02Correctly linkify packages with a version-constraintJon Turney
2022-10-02Drop generating requires: headerJon Turney
For setup versions later than 2.885, it's superseded by depends2: Dropping this reduces the size of setup.ini by about 5%
2022-09-14Warn if license: is missing in uploadsJon Turney
2022-08-15Fix flake8-import-order warningsJon Turney
2022-06-15Use a separate staging dir for automated build uploadsJon Turney
Look in a different directory for packages being deployed by scallywag. Future work: this will allow disabling the uploading of local builds (on a per-package basis), whilst still allowing automated build uploads. Update tests appropriately.
2022-06-14Remove empty subdirectoriesJon Turney
Remove empty subdirectories in release and upload areas.
2022-06-07Allow 'license:' key in source hintJon Turney
Allow 'license:' key in source hint, and check it contains a valid SPDX license expression. Show the key value in source package summary page, and in repology JSON output. Update tests appropriately Future work: Add 'license:' to the set of mandatory keys for a source package.
2022-05-17Improve reporting of what's happening with their packages to a maintainerJon Turney
Allow maintainers get reporting on changes and problems with their packages, even if it's something occurring spontaneously in calm. e.g. being vaulted due to change in expiry mechanisms, failing package set validation due to tighter constraints, etc. Add a generic filter as a context manager, which sets log record attrs specified as kwargs. Use that to send each maintainer log entries caused by their actions, or pertaining to their packages.
2022-05-17Raise minimum setup version to 2.903Jon Turney
Preparatory to dropping signing with old key, since 2.903 is the first version supporting signing with the new key.
2022-03-06Give unmaintained packages the 'unmaintained' pseudo-categoryJon Turney
Give unmaintained packages the 'unmaintained' pseudo-category in setup.ini
2022-02-23Persistently record all package namesJon Turney
Record all package names persistently, to determine the set of names of packages which have been removed. This allows removing packages whilst still validating the names in an obsoletes: hint, without having to manually maintain a list of those names.
2022-02-14Remove 'stability level' computation and useJon Turney
Follow up to d8869d2e. Since d863c1a2, 3cc08991 and 27852b24 these 'stability levels' can't be set in override.hint, so they are just determined by sorting by version. Update tests as 'keep-count: 0' is now effective, rather than having an minimum of 1 (the curr: version, or 2 before prev: was also dropped).
2022-01-20Update expected test output for summary link in package contents HTMLJon Turney
2021-05-31Disallow requires: and obsoletes: in src.hint filesJon Turney
Disallow requires: and obsoletes: in src.hint files, as noted in bb467a09 These are being ignored, and are only present in src.hint files created from .hint files for old packages. Update test data appropriately for dropped hints, and for the hint fixing backup files created during upload.
2021-05-29Make 'homepage:' mandatory in new -src.hint uploadsJon Turney
Also update test data appropriately
2021-05-24Ignore 'skip' hintJon Turney
Ignore the 'skip' hint, as it's meaningless, now we properly classify packages as source or install. Instead, if installing a non-obsolete package will do nothing, mark it as not_for_output. Future work: also allow the 'does nothing' check to apply to '_obsolete' packages. At the moment this would catch a few more packages which probably need to be obsoleted: by something before they can be safely removed. (It's not safe to simply vault them as we need to ensure any existing installed files owned by that package are removed when a system with them installed is updated.)
2021-05-09Simplify package processing by removing vermapJon Turney
Since a package now only contains either all source or all install archives, we can drop the 'category' indirection that vermap provides. Drop Package.vermap Drop the category argument to Package.tar(), and drop checks that it's the expected value before calling that. Drop the filename index (which came from vermap) into Package.tars, and rename it to Package.tarfiles ensure we've caught all references.
2021-05-09Improve empty package checksJon Turney
An empty install package without depends should be in the '_obsolete' category. (We're now checking all install packages, not just ones without external-source: (which we ignored here for somewhat bogus reasons), so add additional exceptions to past_mistakes.) An empty install package with depends should be in the 'virtual' category (but there are many old obsoletion packages which look like that, so allow '_obsolete' as well). Also check for empty source packages (and then fix the empty rpm-doc-src we have in test data).
2021-05-06Clean test_html_writer output directory before testJon Turney
html files aren't generated if they already exist, so clean the test_html_writer output directory before the test, to ensure files are always generated.
2021-03-14Handle epoch (if present) in version comparisonJon Turney
2021-01-04Add zstd to permitted archive compressionsJon Turney
Use the xtarfile module to handle zstd compressed archive. Note this isn't quite as straightforward as 'import xtarfile as tarfile', because it isn't precisely a drop-in replacement for tarfile, because: (i) the 'mode' argument to xtarfile.open() is mandatory, and (ii) it doesn't re-export tarfile exception classes such as tarfile.ReadError
2021-01-04Stop permitting upload of 0-byte compressed filesJon Turney
Stop permitting the upload of a 0-byte compressed file in the place of an empty compressed archive. (Such files existing in the release are are still accepted for historical compatibility). Cygport stopped generating these historical anomalies a few years ago.
2020-08-23Include a date in package summary pageJon Turney
Include build date (strictly, the package archive mtime) in the package summary HTML page. Also refine package size units to KiB, since that's what we actually use. Use a fixed timestamp (in UTC) for all packages in test data.
2020-07-28Raise minimum setup version to 2.895Jon Turney
provides: isn't supported by setup earlier than 2.891, so we can't install anything which requires: something that is provides:ed with that version.
2020-07-19package.delete() also deletes empty packagesJon Turney
Once a Package object no longer contains any files (archives or hints), it can be removed from the package set. (This fixes calm complaining when it wants to vault a stale package which had source, but no kept version does. Otherwise it complains that the source package has no versions) Also remove removed hints from version_hints, since we iterate over that in some places. This also prevents removed versions from bogusly appearing in packages.json, so update test data appropriately.
2020-06-11Avoid shadowing 'object' builtinJon Turney
A002 "object" is used as an argument and thus shadows a python builtin, consider renaming the argument
2020-06-07Teach check that requires: are satified to know about provides:Jon Turney
2020-06-01Bump the minimum setup versionJon Turney
We start to raise the minimum setup version, to hopefully cause people to stop using those old versions, in anticipation of dropping signing with the key those old version expect. Unfortunately, this doesn't help with the very old versions which don't support setup-minimum-version:. which ~1% of IP activity is still using.
2020-05-28Move static methods out of Maintainers classJon Turney
We're not writing C++, they are still scoped to the module namespace, so making them @staticmethod just makes using them require more verbiage.
2020-05-25Remove support for curr: appearing in override.hintJon Turney
This doesn't really work the way it's expected to across setup versions, and isn't a good way of approaching the problem (current alternatives: make the version you want to be preferred have the highest non-test version, or use replace-versions: to cause higher versions to be uninstalled). Future work: lots of cruft for handling stability level overrides remains, which can all be cleaned up.
2020-05-20Clean up unnecessary uses of get/setattr() in test_calm.pyJon Turney
B009 Do not call getattr with a constant attribute value, it is not any safer than normal property access. B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
2020-05-20Mark unused variable in uses of os.walk()Jon Turney
B007 Loop control variable 'subdirs' not used within the loop body. If this is intended, start the name with an underscore.