Skip to content

issue-98 add test analyzer results to the PR - #102

Open
vfrank66 wants to merge 3 commits into
google:mainfrom
vfrank66:issue-98/add-test-analyzer-to-pr
Open

vfrank66 wants to merge 3 commits into
google:mainfrom
vfrank66:issue-98/add-test-analyzer-to-pr

Conversation

@vfrank66

Copy link
Copy Markdown
Contributor

No description provided.

@google-cla

google-cla Bot commented Apr 16, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@vfrank66
vfrank66 force-pushed the issue-98/add-test-analyzer-to-pr branch from 8fbeb38 to d583c1d Compare April 17, 2025 02:29
Comment thread .github/workflows/go_build.yaml Outdated
uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe from reading https://github.com/actions/setup-go?tab=readme-ov-file that we don't need to explicitly add caching for this action, since as of v4 caching is the default behavior.

Comment thread .github/workflows/go_build.yaml Outdated

- name: Check out code
uses: actions/checkout@v4
cache: true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as the above comment, seems like this is unneeded.

- name: Get dependencies
run: |
go mod download
- name: Build

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Genuine question, does this work? don't we still need to build everything for the analyzer to be able to run?

…b summary

setup-go v4+ caches by default, so the cache: true lines are removed and
the job layout matches main again (action versions, matrix, go.mod).

The analyzer prints through log.Println, i.e. to stderr, so the old
"./analyzer > analyzer-output.txt" produced an empty file. A pull_request
run from a fork also gets a read-only GITHUB_TOKEN, so creating a PR
comment fails with 403. Capture stderr and write the report to
GITHUB_STEP_SUMMARY instead; the artifact upload is dropped as redundant.
@vfrank66
vfrank66 force-pushed the issue-98/add-test-analyzer-to-pr branch from d583c1d to 90f2b19 Compare October 11, 2026 17:12
…missions

The zizmor check on this PR requires every action pinned to a hash. Pins
checkout and setup-go to the commits their v6 tags point at today (v6.1.0,
v6.5.0), adds a read-only permissions block, and turns off checkout
credential persistence, which no step needs.
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