Skip to content

ci: Add CI check for Parse Server options definitions #7955

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

Merged
merged 27 commits into from
Dec 17, 2022

Conversation

dblythy
Copy link
Member

@dblythy dblythy commented Apr 28, 2022

New Pull Request Checklist

Issue Description

Often, the definitions files are manually edited.

Closes: #7918

Approach

Generates definitions and compares to committed definitions

TODOs before merging

  • A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)

@parse-github-assistant
Copy link

parse-github-assistant bot commented Apr 28, 2022

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.25%. Comparing base (af95fe7) to head (d4e3ae6).
Report is 929 commits behind head on alpha.

Additional details and impacted files
@@            Coverage Diff             @@
##            alpha    #7955      +/-   ##
==========================================
+ Coverage   93.82%   94.25%   +0.42%     
==========================================
  Files         182      180       -2     
  Lines       13629    13987     +358     
==========================================
+ Hits        12787    13183     +396     
+ Misses        842      804      -38     

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

@dblythy dblythy closed this Apr 28, 2022
@dblythy dblythy reopened this Apr 28, 2022
@dblythy
Copy link
Member Author

dblythy commented Apr 28, 2022

Not quite sure why this runs fine locally but github actions responds with [Error: ENOENT: no such file or directory, open './src/options/Definitions.js'] {

@mtrezza
Copy link
Member

mtrezza commented Apr 28, 2022

Likely because in the GH container environment the path root is different from your local env.

@dblythy
Copy link
Member Author

dblythy commented Apr 28, 2022

Ok, thanks for the pointers CI expert! If you could have a quick look at the approach and let me know your general thoughts some time that would be great.

} else {
process.exit(0);
}
})();
Copy link
Member

@mtrezza mtrezza Apr 28, 2022

Choose a reason for hiding this comment

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

Could you use const core = require('@actions/core'); and in addition to logging a console.log use core.error. See the existing checks in /ci directory. IIRC I've kept the console.log logging only for debug purposes because core logs are not displayed locally. That core lib is quite convenient, you can define for example what is displayed as the main error for the failing CI job in the CI summary.

@mtrezza mtrezza force-pushed the alpha branch 2 times, most recently from 59215e6 to e6d7d8f Compare May 1, 2022 02:29
@dblythy dblythy force-pushed the definitions-ci-check branch from 077ee40 to 6b09c20 Compare May 5, 2022 07:39
@dblythy dblythy marked this pull request as draft June 8, 2022 12:20
@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title feat: add definitions CI check feat: Add definitions CI check Dec 16, 2022
@dblythy dblythy marked this pull request as ready for review December 16, 2022 03:11
@dblythy dblythy requested a review from a team December 16, 2022 03:12
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

That's a very cool one! Will save us a quite some trouble in the future.

@mtrezza mtrezza changed the title feat: Add definitions CI check ci: Add CI check for Parse Server options definitions Dec 17, 2022
@mtrezza mtrezza merged commit 5a26426 into parse-community:alpha Dec 17, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.0.0-alpha.15

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Dec 20, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jan 31, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Jan 31, 2023
dblythy added a commit to dblythy/parse-server that referenced this pull request Feb 15, 2023
@mtrezza mtrezza mentioned this pull request Jan 16, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add definitions check to CI
5 participants