Skip to content

Support setting whiteboard flag to (re-)request reproduction. - #605

Open
jgraham wants to merge 3 commits into
mainfrom
autowebcompat_reproduce_flag
Open

jgraham wants to merge 3 commits into
mainfrom
autowebcompat_reproduce_flag

Conversation

@jgraham

@jgraham jgraham commented Sep 23, 2026

Copy link
Copy Markdown
Member

If you set the [autowebcompat:reproduce]` flag on a bug, re-run the reproduction. This is useful in case we improved hackbot to be able to try in more cases, or if the old reproduction was against a previous version of the site and so is not longer valid.

Checklist for reviewer:

  • Commits should reference a bug or github issue, if relevant (if a bug is referenced, the pull request should include the bug number in the title)

  • Scan the PR and verify that no changes (particularly to .circleci/config.yml) will cause environment variables (particularly credentials) to be exposed in test logs

  • Ensure the container image will be using permissions granted to telemetry-airflow responsibly.

@jgraham
jgraham requested a review from a team as a code owner September 23, 2026 20:11
@jgraham
jgraham requested a review from ksy36 September 23, 2026 20:11
If you set the [autowebcompat:reproduce]` flag on a bug, re-run the
reproduction. This is useful in case we improved hackbot to be able to
try in more cases, or if the old reproduction was against a previous
version of the site and so is not longer valid.
@jgraham
jgraham force-pushed the autowebcompat_reproduce_flag branch from 6cfcc78 to db97cf1 Compare September 24, 2026 13:48
require_user_story = {}

remove_whiteboard(bug, bug_update, [self.whiteboard_progress_token])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to check and clear previously set tokens, right? i.e. if a run has failed before with [autowebcompat:repro-failed] and new one succeeded , [autowebcompat:repro-failed] needs to be removed.
Also for user story, if a new run will update autowebcompat-repro-status to success, but autowebcompat-repro-reason will still stay from the previous run (I think diagnosis request does that).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch.

I've done a bit of a refactor to make the BugUpdate class a bit easier to use, and I've added a list of user story fields to each class and set things up to start by setting them to None so that they're removed, and then updating them in the method with new values where appropriate.

It's still a bit ugly in that we end up sharing logic between the classes, but I think it's a step on a way to a better solution.

This refactors the BugUpdate class so that bug modifications go
through methods that update the internal state rather than updating
the state directly. The final state to be passed to bugzilla is then
created by calling get_updates() on the class.
…tory

Give each Task an ordered set of user story fields that it owns, and
at the start of the bug update, set these user story fields to None in
BugUpdate, so that they're removed if no new value is provided to
overwrite them.
@jgraham
jgraham requested a review from ksy36 September 25, 2026 11:22
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.

2 participants