Skip to content

Validate tag hashability before updating jobs - #667

Open
muneikh wants to merge 1 commit into
dbader:masterfrom
muneikh:validate-tags-before-updating
Open

muneikh wants to merge 1 commit into
dbader:masterfrom
muneikh:validate-tags-before-updating

Conversation

@muneikh

@muneikh muneikh commented Oct 11, 2026 •

Copy link
Copy Markdown

Hashable ABC membership does not guarantee that hash(tag) succeeds: tuples containing lists and custom hash implementations can still raise TypeError. Job.tag currently passes those inputs to set.update, adding earlier tags before failure.

Hash every proposed tag before changing the job tag set and report the existing Tags must be hashable error consistently. Two regressions check nested unhashable tuples and a failing hash method, verifying existing tags remain intact.

Validation: both cases fail before the patch. Full Python 3.12 tox suites pass with pytz (83 tests) and without pytz (42 passed, 41 skipped); Mypy passes both. The required Black 20.8b1 full-tree check passes on Python 3.10 after its default Python 3.14t environment could not build typed-ast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant