-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Pulsar] Add Pulsar Badges for Stargazers & Downloads #8767
Conversation
|
Apparently, the test runner is unable to find my test suite, does it maybe not like the dash? Although it looks like If anyone has some pointers on what's causing the tests to be missing, I'd appreciate it |
|
Not sure why |
Odd. We have been in the process of converting our existing CI processes over to GitHub Actions, so the failure could be unrelated to your changes |
Tests are running now, with failure details available at the link + inline below. The test runner framework by default is driven off the class name, so the hyphen is unnecessary unless the tester has been explicitly wired up in a different way. 2 tests failed out of 4
Test Insights
New
PulsarEditDownloads [live] pulsar-edit downloads (not found) [ GET /test-package.json ]
[ GET /test-package.json ]
/home/circleci/project/core/service-test-runner/cli.js
AssertionError: color mismatch: expected 'red' to equal '#662d91'
at Function._expectField (file:///home/circleci/project/core/service-test-runner/icedfrisby-shields.js:85:51)
at IcedFrisbyNock.<anonymous> (file:///home/circleci/project/core/service-test-runner/icedfrisby-shields.js:73:26)
at IcedFrisbyNock.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:954:10)
at invokeNextHook (node_modules/icedfrisby/lib/icedfrisby.js:1003:24)
at /home/circleci/project/node_modules/icedfrisby/lib/icedfrisby.js:1017:7
at new Promise (<anonymous>)
at IcedFrisbyNock._runHooks (node_modules/icedfrisby/lib/icedfrisby.js:976:12)
at IcedFrisbyNock.run (node_modules/icedfrisby/lib/icedfrisby.js:1276:20)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:1348:9)
+ expected - actual
-red
+#662d91
PulsarEditStargazers [live] pulsar-edit stargazers (not found) [ GET /test-package.json ]
[ GET /test-package.json ]
/home/circleci/project/core/service-test-runner/cli.js
AssertionError: color mismatch: expected 'red' to equal '#662d91'
at Function._expectField (file:///home/circleci/project/core/service-test-runner/icedfrisby-shields.js:85:51)
at IcedFrisbyNock.<anonymous> (file:///home/circleci/project/core/service-test-runner/icedfrisby-shields.js:73:26)
at IcedFrisbyNock.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:954:10)
at invokeNextHook (node_modules/icedfrisby/lib/icedfrisby.js:1003:24)
at /home/circleci/project/node_modules/icedfrisby/lib/icedfrisby.js:1017:7
at new Promise (<anonymous>)
at IcedFrisbyNock._runHooks (node_modules/icedfrisby/lib/icedfrisby.js:976:12)
at IcedFrisbyNock.run (node_modules/icedfrisby/lib/icedfrisby.js:1276:20)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:1348:9)
+ expected - actual
-red
+#662d91 |
@calebcartwright Thanks a ton for providing some feedback and working out the test issue for me! I'll get right on those changes, and glad to hear I didn't do something crazy causing that other test to fail. Appreciate your time! |
@calebcartwright (I apologize if you are the wrong person to ping, or if the ping is unnecessary) Was trying to expect the badges colour when the service returns a 404, but seems that no other badges do this, which I'm assuming the colour on failure is being set somewhere else in the application rather the my badges |
The issue with danger is unrelated. I thought everything was just using API calls but there must be something in our dangerfile that is working out the list of changed files from the API and then tries to open some of the files in the PR from the local filesystem, which then fails because they're not checked out on the |
Thank you for the PR, now that all the tests & CI checks are passing we should be able to begin the review process. Although we do not strictly require PRs have an associated issue, in cases like this where a new badge is being proposed absent an issue we'd still like to get the details and answers to the questions we pose as part of fielding new badge requests. Sharing them inline below to streamline things, please follow up with responses whenever you get a chance! Description
Where can we get the data from?Please consider and cover details like:
|
@calebcartwright Of course, apologies if this was not good form but here are the answers to those questions:
Description
Where can we get the data from?
Since I know Pulsar is a newer platform and service here's some links if you'd like to verify more: |
That helps a lot, thanks! Last question before really diving into the code, but based on the commentary in this thread and the material on the links you posted I get the impression that "Pulsar" is the truer name & nomenclature that will most resonate with users, and I imagine the "edit" portion was just added in places where necessary for distinction (e.g. domain). Is that fair/accurate, or is the service/platform/etc. name indeed PulsarEdit/Pulsar-Edit? If it's the former then we should update the naming utilized here as well to simply reflect Pulsar |
Hm. That is a good point. The way we have essentially used it is Pulsar-Edit is the organization, meanwhile Pulsar is the editor itself. But you have a good point that Pulsar may resonate more-so with the community of users as this is more recognizable as our naming. And talking quickly with other Pulsar devs seems they agree with your assessment. I'll go ahead and get to those changes here, and ping once done. Thanks! |
@calebcartwright I've gone ahead with the rename, and am now simply using |
Please feel free to let me know if there's anything I can do to further help this PR, such as updating it to the latest changes on Otherwise appreciate any attention it's gotten so far! |
Again feel free to let me know if you'd like me to update this from the master branch or do anything else to get it in a prime position. Appreciate any feedback. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution and sorry for the long wait @confused-Techie. Mostly looks good to me, a couple of changes and I think we'll be ready to go. 😉
@PyvesB Thanks a ton for the review, I've gone ahead and made the requested choices. Feel free to let me know if everything looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me! 👍🏻
Thanks a ton for reviewing and getting this approved. Appreciate you! |
Hello folks, first time submitting a PR to this repo, so hopefully I've considered and followed all Contributing Guidelines.
But this PR adds badges for the Pulsar-Edit or Pulsar Package Registry Server.
Adding the following endpoints and Badges:
pulsar-edit/downloads/:packageName
: To get a Packages Download Countpulsar-edit/stargazers/:packageName
: To get a Packages Stargazers CountPulsar is the emergent fork of Atom, and these badges now replace the
apm
badges for our service, which it may be worth removing theapm
badges as they all no-longer work (But outside the scope of this PR).Unfortunately I was unable to run the test suite locally on my machine and had to rely on GitHub Actions to test due to Issue #8437 and will add a comment to that issue as well, that the service tests do not run on Windows for me either.
But please provide any feedback as needed, and thanks for any time spent reviewing this!