Skip to content

Bug reports from a device README's Requirements excludes get a label and one comment pointing there - #462

Closed
v0lumehi wants to merge 2 commits into
seedds:mainfrom
v0lumehi:issue-device-check
Closed

v0lumehi wants to merge 2 commits into
seedds:mainfrom
v0lumehi:issue-device-check

Conversation

@v0lumehi

Copy link
Copy Markdown
Contributor

What and why

Stacked on #446, which adds README's Requirements section and the bug form's Requirements checkbox. The first commit here is #446's; review only the last one, 7c82e838.

Bug reports from devices outside the Requirements keep coming in: Intel Macs, older iPhones, iOS below 26. Each costs a round of questions before it turns out the device is the cause. This adds a workflow that answers those cases on its own, deterministically, without closing anything:

  • What it does. When a bug report is opened, dm/tools/issue_device_check.py reads the form's "Device and OS" field. If the field clearly names an unsupported device, the issue gets the unsupported device label and one comment that links README's Requirements and says what it read. The workflow creates the label if it's missing.
  • What counts as clear:
    • an Intel Mac;
    • macOS, iOS or iPadOS below 26;
    • an iPhone before the 15 Pro, including the 15 and 15 Plus (A16);
    • an A-series chip below A17;
    • an iPad with an A-series chip below A17.
  • Anything ambiguous does nothing: several devices in one field, a model and a chip that disagree, versions on both sides of 26, or no model at all. A false alarm on a supported device is worse than a missed case.
  • It never closes, locks or assigns. If it misread the device, a maintainer removes the label.
  • Safe with untrusted text. The script reads the issue from $GITHUB_EVENT_PATH, so no issue text reaches a run: line. The device it quotes back is put in inline code, cut to 80 characters, with backticks replaced, so mentions and links in it do nothing. Permissions: issues: write, contents: read.
  • Runs once. It triggers on opened only, so a later edit doesn't add a second comment. The comment starts with <!-- device-check -->, and a re-run of the job skips if that marker is already there.

The comment, for example:

Thanks for the report! I read your device as MacBook Pro 2019 Intel i9, macOS 15.6, which looks outside the devices in the Requirements table: an Intel Mac and macOS below 26. nxnative is tested only on those devices, so the problem may well come from the device. I added the unsupported device label so this is easy to spot.

If I misread your device, say so here and a maintainer will remove the label.

Not read on purpose:

  • The build Mac (macOS 26.6, Xcode 27.1). The field asks for the device the problem happens on.
  • An iPad with an A17 Pro (iPad mini 7). README excludes it, but the detector leaves it alone rather than risk a false alarm.

@seedds: whether a bot should answer at all, and the comment's wording, are your call. The label alone would also work, and so would a comment without the label.

Checked

  • Tests: dm/tools/tests/test_issue_device_check.py. It runs a table of device texts: every flagged case, supported ones (M1 to M5 Macs, iPhone 15 Pro and later, 16e, M-series iPads), mixed case and extra words, ambiguous texts, and a body without the field. All pass.
    • test_docs: OK.
    • The lint ratchet: 0 new findings.
    • The workflow's YAML parses. actionlint was not available.
  • Games run: none, as there is no game code in this change.
  • Devices and OS: M2 Max, macOS 27.2.
  • Regress: none. Nothing here reaches the host, the chain or the game tools.
  • Not checked: the workflow hasn't run on GitHub; it runs only once it's on main.

Docs

  • Not applicable: no finding. The workflow is documented in CONTRIBUTING.md (Supported devices) and docs/development.md
  • Not applicable: no chain tool changed
  • No game files, keys or data extracted from a game in the change or the attachments

…sks for it

The supported devices were spread over four places: a sentence under the
games gallery (iPhone and iPad), the packing steps (the build Mac), the Mac
play section, and CONTRIBUTING.md. Questions from devices outside them keep
coming in as issues (seedds#165, seedds#8, seedds#4, seedds#54).

README gets a short Requirements section after its introduction: a table for
playing on an iPhone or iPad, playing on a Mac, and building a game, and one
paragraph on what is out of scope here and why (a second rendering path that
every change has to keep working), with forks welcome and a change starting
as an issue. The sentence under the gallery and CONTRIBUTING.md's supported
devices now link to it. The bug report form asks, as a required checkbox,
whether the device and the build Mac meet the requirements.

Checked: test_docs passes (links and anchors), and the form's YAML parses.
A new bug report whose Device and OS field clearly names an Intel Mac, a Mac or
iPhone/iPad on an OS below 26, an iPhone before the 15 Pro or an iPad with an
A-series chip gets the unsupported device label and one friendly comment
pointing to the Requirements table. Ambiguous or missing devices do nothing.
The detector is dm/tools/issue_device_check.py; the workflow runs on opened
issues and reads the event file, never the issue text in a run line.
@github-actions github-actions Bot added tools Tools and scripts (dm/tools, scripts) docs Documentation ci Continuous integration and repository settings (.github) labels Nov 3, 2026
@seedds

seedds commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Thanks for putting together the device-check script and careful test cases, @v0lumehi.

We're closing this PR because main already documents device requirements and has issue triage tooling, and free-form device descriptions are easy for an automated bot to misread while minimum chip rules age as support evolves. Without measured evidence of triage savings and low false positives, we'd rather leave automated replies out for now.

@seedds seedds closed this Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration and repository settings (.github) docs Documentation tools Tools and scripts (dm/tools, scripts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants