28 KiB
Changelog
2.6.22 - 2026-02-18
result.find_resultrows: special handling for Fedora Media Writer table columns
2.6.21 - 2025-09-18
find_resultrow: fix a dumb mistake in the 2.6.20 change
2.6.20 - 2025-09-18
find_resultrow: do a stricter name check before the looser one
2.6.19 - 2025-09-18
get_resultrows: fix bug involving sections from templates that caused bad testcase_stats output
2.6.18 - 2025-03-14
- Adapt AMI download page generation for change to message topics, again
2.6.17 - 2024-10-07
- Adapt AMI download page generation for change to message topics
2.6.16 - 2024-09-13
- Avoid deprecation warnings with mwclient 0.11.0
- Replace use of external pytz with stdlib datetime.timezone
2.6.15 - 2024-09-12
- Add missing test data files
2.6.14 - 2024-09-12
- Adapt AMI download page generation to new cloud image uploader
2.6.13 - 2024-08-29
cid_to_event: fail on non-digit versions that aren't Rawhide
2.6.12 - 2024-03-18
DownloadPage: downweight images with type "live-osbuild"
2.6.11 - 2024-02-28
cid_to_event: better error when compose failed
2.6.10 - 2023-07-01
- Don't collapse any AMI tables
- Behind-the-scenes improvements to tox config
2.6.9 - 2023-06-30
- Expand "gp3" not "standard" by default in AMI tables
2.6.8 - 2023-06-30
- Handle "gp3" volume type in the AMI table generation code
2.6.7 - 2022-12-16
- Treat matrix template pages as result pages
2.6.6 - 2022-01-26
- Drop test assertions that require modular compose support in fedfind
2.6.5 - 2020-11-06
- Fix bug in find_resultrows environment comparison
2.6.4 - 2020-07-22
- Include Summary pages in event category (relval #13)
2.6.3 - 2020-05-21
find_resultrows: handle IoT test case names in pwhalen's namespacefind_resultrow: handle awkward section names better (#4)
2.6.2 - 2020-05-21
- Don't include source DVDs in the download tables
2.6.1 - 2020-05-15
- Brown paper bag release to fix version tags
2.6.0 - 2020-05-15
- API: Drop QATracker support
- MAJOR: Drop Python 2 support
- NEW: Replace hardcoded "modular" support with generic "dist" support, enable IoT event creation
- Significantly extend test suite coverage
- Modernize project layout and infrastructure
- Fixups to pass pylint and black linters
get_current_event: return None if there is no current eventadd_results: correct summary text when we don't touch a row
This is a major release which both does a bunch of modernization - incorporating dropping Python 2 support, as it's 2020 already - and replaces the hardcoded code to handle a separate stream of events for modular composes with a more generic implementation that can hanlde creating a separate stream of events for any dist other than "Fedora". Specifically, in this release, we enable creation of events for Fedora-IoT.
2.5.2 - 2020-04-23
- Fix non-link-text testname parsing when it has spaces in it
2.5.1 - 2019-11-13
- Fix the AMI seedtext generation with Python 2
- Add pytz to the requirements
2.5.0 - 2019-11-13
- NEW: Add
page.AMIPage(andevent.ValidationEvent.ami_page) with AMI links for event - Make image download table properly collapsible again
2.4.4 - 2019-09-12
- Tweak weighting in the image download table generation
2.4.3 - 2019-08-26
- Simplify default host for Wiki instances (avoids deprecation warnings with mwclient 0.10.0)
2.4.2 - 2018-11-30
- Fix a test bug exposed by the 2.4.1 bug fix
2.4.1 - 2018-11-30
- Fix a bug which broke update of 'Current' redirect pages on new event creation
The bug is only apparent in combination with a bug in the Fedora wiki which appeared in the last couple of months - since Fedora 29 came out, new events have been created, but these redirect pages have not been getting updated.
2.4.0 - 2018-10-06
- Drop support for old authentication system
This is not technically an API-breaking change, but it does slightly alter the
behaviour of the login() method with non-Fedora wikis. In almost all normal
use cases you will not notice any difference, as the new OpenID Connect-based
authentication system has been in use on Fedora wikis since early 2018.
2.3.1 - 2018-07-11
- Make sure not to create events for updates and updates-testing composes
2.3.0 - 2018-02-20
- Improve handling of corner cases around candidate compose event fedfind release discovery
- Extend test suite
- pylint cleanups
- Use image URLs provided by fedfind rather than constructing ourselves (needs fedfind 3.3.0)
2.2.2 - 2017-12-07
- Don't pass
oldtextkwarg to mwclientsave()method, which doesn't understand it
2.2.1 - 2017-11-16
- NEW: Support OpenID Connect authentication for Fedora wikis
2.2.0 - 2017-11-10
- NEW: Support validation events for Fedora-Modular composes (Fedora 27 Modular Server)
- API:
helpers.cid_to_eventnow returns 4-tuple not 3-tuple (addeddistas first value) - API:
ResTupleis now a 15-tuple not 14-tuple (addedmodularas last item)
2.1.11 - 2017-03-17
- Include download table and individual page links in summary pages
2.1.10 - 2016-12-16
- Drop the page edit captcha solving code entirely, it's useless since MW 1.18
- Drop downstream addition of
endarg forTcmsPageListagain (merged upstream in 0.8.2) Requires mwclient 0.8.2 or higher
2.1.9 - 2016-12-16
This update addresses a security issue with potentially serious consequences
but very limited scope. The issue could have been exploited by a malicious wiki
administrator - with the ability to craft the wiki's response to save()
requests - to execute arbitrary code with the privileges of the user running
wikitcms. It was not vulnerable to attack by anyone besides a wiki admin.
- SECURITY Finally get rid of the
eval()usage in captcha handling
2.1.8 - 2016-12-08
- Update some fedfind usage (don't use
get_release_cidany more) - Don't bother trying to find events for FedoraRespin, Fedora-Atomic etc. composes
2.1.7 - 2016-11-09
- Convert 'Final' to 'RC' when release is > 24 in
Wiki.get_validation_{event,page}
2.1.6 - 2016-04-20
- NEW
Listing.TcmsPageList: re-addendsupport - NEW
Wiki.alltestdays,Wiki.allresults: re-addendsupport
2.1.5 - 2016-04-08
ValidationPage.find_resultrow: handle rows that differ only by environment
2.1.4 - 2016-03-23
- Drop ability to pass
cidtoValidationEvent.create(andDownloadPage.__init__) - Enable running tests from
setup.py
2.1.3 - 2016-03-17
- Adjust
DownloadPagedownload table generation to usesubvariantrather thanpayload
2.1.2 - 2016-03-16
- Turn some
Eventinstance attributes into properties to avoid unnecessary remote trips
2.1.1 - 2016-03-16
- Fix
creation_dateforNightlyEvents that do not yet exist - Improve
triplet_sortfor new-style composes
2.1.0 - 2016-03-16
- MAJOR: not technically an API change, but pages now have more Pungi 4-like names with respin values
- API:
Wiki.get_validation_event_url(added in 2.0.0) is dropped again - API:
Wiki.get_validation_{event,page}no longer do release guessing - API: Event properties
has_bootisoandcompose_existsdropped - API: Event method
get_package_versionsdropped (moved to fedfind) - NEW:
Wiki.get_validation_{event,page}now acceptcidargument (compose ID) - NEW: Events and Pages now have
creation_dateproperties, for use in sorting - Major test suite coverage improvements
- Several small bug fixes
2.0.2 - 2016-03-04
- Add missing 2.0.1 changelog
2.0.1 - 2016-03-04
- Move credential reading to helpers, add
/etc/fedora/credentialsas a system wide credentials file
2.0.0 - 2016-03-03
This is a major release of python-wikitcms. The most significant change is support for Python 3. To simplify this, and to match mwclient behaviour, python-wikitcms is now intended to always produce unicode strings even under Python 2. I recommend you do the same with any code that uses python-wikitcms: from __future__ import unicode_literals. Passing non-unicode literals to python-wikitcms constructors may possibly result in unicode decode errors in Python 2. Python 3 support requires python-mwclient 0.8.1 or higher.
There is also work to adjust to Fedora's new Pungi 4-based compose process. For now this is managed without any incompatible API changes, though a few new API bits are added.
- Python 3 support
- When running under Python 2, use unicode literals everywhere
- Properly handle not-found pages in
Wiki.report_validation_results() - Resync a few things with upstream mwclient (drop downstream workarounds for bugs)
- Add
usernameandfasnameto the list of example names ignored when finding results - Add quite a lot more test coverage
- Whitespace-strip comments from old
{{testresult}}template results - NEW
Wiki.get_validation_event_urlfor getting an event from a Pungi 4 compose URL - NEW
NightlyEventnow accepts optionalurlparam to specify compose location - Adjust fedfind parsing a bit to account for new productmd-style image metadata
- Drop
Eventabstract class (it did almost nothing),ValidationEventis now the top level - Fix
ValidationEvent.valid_pagesforNightlyEvents (it was returningComposePages) - NEW
ValidationEvent.create()method for creating the event (code moved from relval) - API
ResultRowequality is now done via amatches()method instead of 'real' equality - Many many smaller bugfixes and pylint cleanups
1.13.3 - 2015-12-24
- Fix handling of similarly named resultrows like 'QA:Testcase_foo' and 'QA:Testcase_foo_bar'
- Update and reorganize documentation
- Add several missing releases to this CHANGELOG
1.13.2 - 2015-10-27
- Fix a bug causing triplet_sort to crash in certain cases
1.13.1 - 2015-10-26
- Fix RC1 sorting as older than TC10 in sort functions
1.13 - 2015-10-20
- Add tests for sorting and find_bugs() functions
- Fix a bug in triplet_unsort() where it would replace bits of dates with strings
- API drop fedora_release_unsort (it could never work reliably)
- API drop next_composes (was never used for its intended purpose and is fairly useless)
1.12.3 - 2015-09-20
- Have image download table get image description from fedfind instead of producing it here
1.12.2 - 2015-09-17
- Refine image download table to use imagesubtype as well as imagetype
1.12.1 - 2015-08-29
- API (addition) Add an improved release sort helper, triplet_sort
- API (addition) Add 'unsort' functions - fedora_release_unsort and triplet_unsort
- SECURITY Protect the eval() used to solve captchas from malicious server admins
- Use mwclient page.text() instead of page.edit() (deprecated upstream)
1.12 - 2015-06-30
- API:
listing.TcmsCategoryrenamed tolisting.ValidationCategory(it's unlikely anyone was using this directly) - Added
listing.TestDayCategoryfor Test Day category pages - Moved
results_wikitextproperty toPageclass so it is also usable forTestDayPages - Added
result.find_results_by_row()to facilitate accurate result finding in Test Day pages - Improve page generator handling of Test Day pages
- Add
TestDayPage.bugsproperty to represent all bugs in aTestDayPage(including those not associated with a result) - Maybe other Test Day parsing-related stuff
1.11.4 - 2015-04-21
- Add support for new Wikitcms 'bot' feature to mark results from automated test systems:
botelement added to the tuple used bywiki.report_validation_results(),botargument added toresult.Result.__init__()andresult.find_results(). No BC break, but older python-wikitcms versions will not correctly parse{{resulttemplates that use the bot parameter.
1.11.3 - 2015-04-17
- use system
cached_property, not fedfind bundled one - fedfind's bundled copy was removed
1.11.2 - 2015-03-26
- bugfix: fix ResultRow() equivalence check - it was too strict, which broke reporting multiple results to one row in a single
report_validation_results()/add_results()operation
1.11.1 - 2015-03-25
- python-wikitcms: handle
milestone=Falseandmilestone=Noneproperly inget_validation_page()/get_validation_event()- this makesrelval size-checkwork without explicitly setting the compose to check (as it's supposed to)
1.11 - 2015-03-25
- substantial enhancements to result reporting; new
ValidationPage.add_results()andWiki.report_validation_results()methods allow reporting multiple results in a single operation (with only one wiki edit operation per page),report_validation_results()accepts simple tuples and handles instantiation ofValidationPage,ResultRowandResultobjects (no API incompatibility,ValidationPage.add_result()remains available) - implement equivalence check for
ResultRowinstances - implement caching of
Page.text()andPage.sections()results - add
Page.find_resultrow(), for finding exactly one result row with specified attributes (moved here from relval report-auto) Wiki.__init__()now defaults to Fedora wiki location if none specified, andWiki.login()now uses credentials file if available and no credentials specified; this allows simple init for editing with justfrom wikitcms import Wiki; wiki = Wiki(); wiki.login()if creds file is available
1.10.2 - 2015-02-18
- Make the page object generator handle Branched nightly pages correctly (return a
NightlyPagenot aComposePage)
1.10.1 - 2015-02-18
- Restore a refinement to the Rawhide/Branched logic which was lost in the transfer from
relval report-resultstoWiki.get_validation_event()
1.10 - 2015-02-18
- Adjustments for the attempt to consolidate versioning across fedfind, python-wikitcms and relval using
release,milestone,composeattributes to identify all images/events - add
Wiki.get_validation_event()andWiki.get_validation_page()methods which consolidate heuristics for guessing at the desired event/page previously spread across different relval sub-commands and openqa_fedora_tools - multiple bugfixes mostly related to
relval report-autoand openqa_fedora_tools use
1.9 - 2015-02-12
- add
Wiki.current_event property(returns 'current'ValidationEventobject) - use abstract base classes to enforce class inheritance in event.py
- pylint cleanups to event.py and page.py
- add
ff_releaseproperty toValidationEventclasses (thefedfind.Releaseobject matching the event) - add
DownloadPageclass for per-event template page of image download links to be transcluded into release validation instructions, andValidationEvent.image_tableproperty to generate its contents - API rename
NightlyEvent.treeattribute toNightlyEvent.milestone(for consistency with fedfind and templates) - Sort of rename wikitcms to python-wikitcms (bit half-assed, though)
1.8.4 - 2015-01-07
- Fix a bug in page writing (broke any page write which didn't use wikitcms' oldtext/newtext comparison, which is most of them)
1.8.3 - 2015-01-02
- Fix result row test case / name detection for cells like
[[QA:Testcase_foo|QA:Testcase_bar]](use foo as testcase and bar as name, instead of bar as both) - Note in README that wikitcms data retrieved from wiki should be treated as untrusted input
1.8 - 2014-12-22
- API
matricesandtesttypesproperties moved from the Event class to the Wiki class, as they are really properties of the wiki, not of a specific event - API (minor)
has_bootisoproperty moved from NightlyEvent to ValidationEvent as it's valid and potentially useful for all validation events, not just nightlies (should not affect consumers as ValidationEvent is the parent class) - API (addition)
compose_existsproperty added to ValidationEvent - Protect harder against odd results in
page.results_sections()
1.7 - 2014-12-19
- API major design overhaul, wikitcms now acts as an extension to mwclient. Too many API changes to list, mainly to Page and Event classes
- improvements to page name regexes, now handles more unusual older release page names and F21 monthly pages
- adjust to match changed approach to nightly builds in the wiki templates
1.6.1 - 2014-12-16
- revert change to
category_walk()method used when finding result pages, it caused duplicates to show up sometimes - have
ValidationPage.get_resultrows()strip comments from result text likeresults_wikitextdoes - fix
ValidationPagehandling of Fedora 12 page name idiosyncracies (broken by 1.6 API change)
1.6 - 2014-12-16
- API Revise nightly compose handling: changes to required arguments for
page.ComposePageandevent.ComposeEvent,from_wikipagemethod moves frompage.ComposePageto newpage.ValidationPage, introduction ofpage.NightlyPage,page.ValidationPage(parent toComposePageandNightlyPage),event.NightlyEventandevent.ValidationEvent(parent toComposeEventandNightlyEvent). New class methodspage.ComposePage.compose_from_wikipageandpage.NightlyPage.nightly_from_wikipage. This is a cleaner and more robust approach, and will scale to other types of compose if necessary ValidationPagefrom_wikipage methods now check if wikipage exists (returning None if not) before doing anything else
1.5 - 2014-12-08
- Support for nightly build testing
1.4.1 - 2014-10-31
- wikitcms now requires python-mwclient 0.7 (result reporting messes up result pages with 0.6.5)
- Fix URL in bug report links in testcase-stats detail pages
1.4 - 2014-10-25
- Refactored result parsing to be less tied to wiki text parsing and more extensible
- Small improvements to display of things like section names and environments in relval (produced by better parsing in wikitcms)
1.3.1 - 2014-10-24
- Add a string representation of Result objects (relval report-results uses this to display existing results)
1.3 - 2014-10-21
- Various tweaks in wikitcms to make result submission viable, including overhaul of section parsing / handling
- helpers.next_compose() to find the likely candidates for the next compose after any given current one
- A few bug fixes
1.2 - 2014-10-16
- fix walk_category() not to return duplicates
- strip comment blocks from results wikitext
- track numeric index of sections when parsing result rows
1.1 - 2014-10-14
- Parsing of existing test result pages in wikitcms
- Added the 'Release' class to wikitcms, providing properties of releases
- Allow finding ComposePage object from mwclient page object, and ComposeEvent from ComposePage
- Added a helper function for doing Fedora release order sorting, and gave ComposeEvent and ComposePage objects a 'sortname' property
1.0 - 2014-10-06
- Initial release
- Supports writing individual result pages and summary pages, correctly handling category membership and category page content, and optionally updating Current redirect pages, for TC and RC builds