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

[MAINT]: build fails during anicca step #391

Closed
1 task done
wolfy1339 opened this issue Sep 9, 2023 · 13 comments · Fixed by #394
Closed
1 task done

[MAINT]: build fails during anicca step #391

wolfy1339 opened this issue Sep 9, 2023 · 13 comments · Fixed by #394
Labels
released Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Comments

@wolfy1339
Copy link
Member

Describe the need

When running the build command, the anicca diff fails

SDK Version

No response

API Version

N/A

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@wolfy1339 wolfy1339 added Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR Status: Triage This is being looked at and prioritized labels Sep 9, 2023
@wolfy1339 wolfy1339 removed the Status: Triage This is being looked at and prioritized label Sep 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2023

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@wolfy1339
Copy link
Member Author

This is blocking updates to the spec currently.

I linted the OpenAPI spec using redocly and it found some issues.
While some of the issues it reported are valid, they are safe to ignore, like ones from the security-defined, operation-4xx-response.
Some others, generated by the spec rule, show many different places in the spec that aren't valid.

The type field must be defined when the nullable field is used.

Those errors may or may not be the cause of anicca failing but would be a good start

@wolfy1339 wolfy1339 moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Sep 9, 2023
@gr2m
Copy link
Contributor

gr2m commented Sep 9, 2023

Unfortunately anicca is no longer maintained. But it was the only tool I found back in the days that was capable of diffing the OpenAPI versions of GitHub's huge specifications. Maybe there is a new tool out there that could be used instead, it's been a while since I checked.

@wolfy1339
Copy link
Member Author

In the mean time that we find another tool, could we disable it to get updates working again?

@gr2m
Copy link
Contributor

gr2m commented Sep 16, 2023

you mean disabling generating the diff files? Okay with me, is it the only thing we use anicca for? It's been a long while since I looked into it

@wolfy1339
Copy link
Member Author

Yeah, it's the only thing anicca is used for. We don't process the diff files further down the pipeline currently anyways

@gr2m
Copy link
Contributor

gr2m commented Sep 16, 2023

okay then, let's disable it for now 👍🏼 thanks for checking

@nickfloyd
Copy link
Contributor

I could always see if @xuorig would be willing to transfer ownership of the repo, but one of the reasons it's public archive is because he made loads of amazing progress on it but went on to new adventures and I simply didn't have the time to put into getting it the rest of the way. I doubt I'd be able to continue pushing forward on it.

I've asked some of our Microsoft friends who work with large OpenAPI schema sets to see if there are any alternatives out there - we tried close to 10 different tools before deciding to roll our own. We have used openapi-diff with some success if we think this is an important step to protect our users. I personally don't have a solid opinion on the real benefits on having this step here.

@gr2m
Copy link
Contributor

gr2m commented Sep 18, 2023

I personally don't have a solid opinion on the real benefits on having this step here.

I think that the diff files should ideally be generated in https://github.com/github/rest-api-description/, and they should be released with proper release notes. That way a much larger consumer base would benefit and the Octokit team wouldn't need to continue maintaining the process.

Reviewing the OpenAPI differences is a time consuming effort, having proper changelogs would save a lot of time, we wouldn't need to create them by hand. Or at least we would have a great baseline to start with that is not a code diff too large too handle for github.com 🤣

@nickfloyd
Copy link
Contributor

I love that line of thinking @gr2m. I'll start the conversation with the owners of that repo.

nickfloyd added a commit that referenced this issue Sep 22, 2023
* build: disable generating `generated/*.diff.json` files

Closes #391

* style: prettier

* Update .github/workflows/update.yml

Co-authored-by: Gregor Martynus <[email protected]>

* Update .github/workflows/update.yml

Co-authored-by: Gregor Martynus <[email protected]>

---------

Co-authored-by: Gregor Martynus <[email protected]>
Co-authored-by: Nick Floyd <[email protected]>
@github-project-automation github-project-automation bot moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Active Sep 22, 2023
@octokitbot
Copy link
Collaborator

🎉 This issue has been resolved in version 12.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@xuorig
Copy link

xuorig commented Sep 24, 2023

Hey folks, I'd be open to reviving Anicca if there is interest / still not a better solution.

I tried fixing it today and I'm currently blocked by this: github/rest-api-description#3001

@nickfloyd
Copy link
Contributor

I tried fixing it today and I'm currently blocked by this: github/rest-api-description#3001

Hey @xuorig let me look into the OpenAPI issue. Sorry for the trouble there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants