Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include warnings-count in report #86

Open
3 tasks done
tfry-git opened this issue Jan 29, 2024 · 4 comments
Open
3 tasks done

Include warnings-count in report #86

tfry-git opened this issue Jan 29, 2024 · 4 comments
Labels
type: enhancement Proposed improvement

Comments

@tfry-git
Copy link

Describe the request

The compile-sketches actions allows the option enable-warnings-report in addition to enable-deltas-report.

Please include that info in the summary posted to PRs. In particular in a matrix build, involving different compilers, it is very useful to spot new (platform specific) warnings, quickly.

Describe the current behavior

This action only posts a readily visible summary of the size-deltas, while - AFAICS - the count of warnings can only be found looking at the action logs itself, which is not very visible, and not very helpful, when dealing with a matrix build.

'arduino/report-size-deltas' version

1

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest version
  • My request contains all necessary details
@tfry-git tfry-git added the type: enhancement Proposed improvement label Jan 29, 2024
@2bndy5
Copy link

2bndy5 commented May 21, 2024

I think this request is more specific to the compile-sketches action. The name of this action (report-size-deltas) does not infer anything about reporting compiler errors/warnings.

It might be easiest to alter compile-sketches action to emit a warning/error message (visible in CI workflow's run summary page), but this idea is incapable of emitting multi-line messages (needed for including the compiler warning/error message).

Note

Some preliminary research about this feature has been done in arduino/compile-sketches#27

@tfry-git
Copy link
Author

You are right, the name report-size-deltas would be off, if this feature was included. OTOH it would still serve a very similar purpose in the development workflow: Automated monitoring of the quality implications of a change / PR. Whatever the naming, it would be useful to a project maintainer to have all such information in one place.

This is the reasoning that led me to file my wish, here.

@2bndy5
Copy link

2bndy5 commented May 21, 2024

FYI, the reports (json artifacts) that this actions needs from the compile-sketches action does not include the error/warning info you wish to be reported.

I still think this request is beyond the scope of this action. It seems like you just want an action to post a comment with all the info you want in it.

@tfry-git
Copy link
Author

tfry-git commented May 22, 2024

FYI, the reports (json artifacts) that this actions needs from the compile-sketches action does not include the error/warning info you wish to be reported.

They do (if enable-warnings-report is enabled). Example artifact: https://github.com/sensorium/Mozzi/actions/runs/9160671044/artifacts/1519589989 . Abbreviated excerpt for one sketch:

      "board": "arduino:avr:uno",
      "sketches": [
        {
          "name": "examples/01.Basics/Control_Gain",
          "compilation_success": true,
          "sizes": [
            {
              "name": "flash",
              ...
            },
            {
              "name": "RAM for global variables",
              ...
            }
          ],
          "warnings": {
            "current": {
              "absolute": 4
            },
            "previous": {
              "absolute": 7
            },
            "delta": {
              "absolute": -3
            }
          }
        },
        ...
      ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants