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

chore: Added updating of docs site with compat table #2205

Merged
merged 4 commits into from
May 28, 2024

Conversation

jsumners-nr
Copy link
Contributor

@jsumners-nr jsumners-nr commented May 21, 2024

This PR should resolve #2157.

@jsumners-nr jsumners-nr force-pushed the docs-automation branch 7 times, most recently from ca0b058 to d818987 Compare May 21, 2024 19:37
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.22%. Comparing base (fcb285a) to head (ca0b058).
Report is 3 commits behind head on main.

Current head ca0b058 differs from pull request most recent head ff9df16

Please upload reports for the commit ff9df16 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2205      +/-   ##
==========================================
- Coverage   95.22%   95.22%   -0.01%     
==========================================
  Files         279      279              
  Lines       44915    44917       +2     
==========================================
+ Hits        42769    42770       +1     
- Misses       2146     2147       +1     
Flag Coverage Δ
integration-tests-16.x 50.07% <ø> (ø)
integration-tests-18.x 49.21% <ø> (ø)
integration-tests-20.x 49.21% <ø> (ø)
unit-tests-16.x 89.02% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 88.94% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 88.94% <100.00%> (+<0.01%) ⬆️
versioned-tests-16.x 76.26% <ø> (-0.09%) ⬇️
versioned-tests-18.x 77.30% <ø> (-0.09%) ⬇️
versioned-tests-20.x 77.30% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I simplified this workflow while I was at it (mainly to fix it so that I didn't have to wait on all the runs while working on this PR). Turns out, I had a typo that was breaking things (output should be outputs). But when I really reviewed it, I realized that the "skip release" was really trying to accomplish the same task. So I refactored things a bit and now we should only need the one conditional check (if it works as I intend).

title: "docs: Updated compatibility report"
commit-message: "docs: Updated compatibility report"
branch: "compatibility-report/auto-update"
delete-branch: true
base: main
labels: "documentation"

docs:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not yet sure this job will do what we actually want, but I can't run it from a branch because this PR is originating from a fork. I think it will just be easier to merge it as-is, and then I can do some manual testing and submit another PR if things are not correct.

Copy link
Member

Choose a reason for hiding this comment

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

that's fair

@jsumners-nr jsumners-nr marked this pull request as ready for review May 21, 2024 19:58
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
javascript:
- '**/*.js'
Copy link
Member

Choose a reason for hiding this comment

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

verify nice

Copy link
Member

Choose a reason for hiding this comment

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

it just occurred to me that if we only update a dep this CI won't run. but that would also cause the prep release PR to run because the package.json will change as well so maybe we need both?

@@ -54,17 +54,59 @@ jobs:
path: compatibility.md

# Generate the new PR to update the doc in the repo.
- run: |
Copy link
Member

Choose a reason for hiding this comment

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

why was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The create-pull-request action actually does this internally. I discovered it while reviewing the documentation for this PR.

- run: |
rm -f status.log
- uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
with:
token: ${{ secrets.NODE_AGENT_GH_TOKEN || secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

not sure i following why you're checking an or here. shouldn't we always use our bot token which is NODE_AGENT_GH_TOKEN?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As a guard for forks. I'm really not sure what happens if it is run from a fork that doesn't have our secrets.

title: "docs: Updated compatibility report"
commit-message: "docs: Updated compatibility report"
branch: "compatibility-report/auto-update"
delete-branch: true
base: main
labels: "documentation"

docs:
Copy link
Member

Choose a reason for hiding this comment

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

that's fair

Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

I can't test this but LGTM

.github/workflows/ci-workflow.yml Show resolved Hide resolved
@jsumners-nr jsumners-nr merged commit c28a938 into newrelic:main May 28, 2024
15 checks passed
@jsumners-nr jsumners-nr deleted the docs-automation branch May 28, 2024 16:20
@jsumners-nr jsumners-nr added the dev:automation Indicates CI automation label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:automation Indicates CI automation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Automate the generation of compatibility report
2 participants