website icon indicating copy to clipboard operation
website copied to clipboard

[High Priority] CI pipeline is failing

Open princerajpoot20 opened this issue 1 month ago • 14 comments

The CI pipeline is failing for all the PRs we have. We are blocked. Please look into the reason behind it.

It's a P1 (high) priority task. Please look into it as soon as possible as we are blocked.

princerajpoot20 avatar Dec 05 '25 03:12 princerajpoot20

okay @princerajpoot20 the issue was in

if-nodejs-pr-testing.yml where -> .number on a null object cauing error (github.event.pull_request.number != '' )

Sourya07 avatar Dec 05 '25 05:12 Sourya07

@princerajpoot20 @Sourya07 While checking github.event.pull_request.number works because of truthiness, it's safer and more explicit to check github.event_name == 'pull_request_target' to decide which ref to checkout. This avoids any ambiguity with null values on push events.

sammy200-ui avatar Dec 05 '25 08:12 sammy200-ui

@sammy200-ui both approaches seem feasible. Looping in @princerajpoot20 to review.

Sourya07 avatar Dec 05 '25 08:12 Sourya07

if-nodejs-pr-testing.yml where -> .number on a null object cauing error (github.event.pull_request.number != '' )

@Sourya07 Can you share the run from where you got this

princerajpoot20 avatar Dec 05 '25 13:12 princerajpoot20

@princerajpoot20 The workflow PR testing - if Node project was manually disabled -> (you can see the yellow banner in the Actions tab). That's why all PRs are stuck - no status is being reported because the workflow isn't running at all. Additional line 48 has an expression bug (github.event.pull_request.number != '') that should be fixed to prevent future issues when the workflow runs on push events.

Sourya07 avatar Dec 05 '25 14:12 Sourya07

@princerajpoot20 the ci pipeline is working fine now.

Sourya07 avatar Dec 07 '25 10:12 Sourya07

@Sourya07 Can you provide me the merged PR link that resolved the issue, or do you mean it got magically fixed?

princerajpoot20 avatar Dec 07 '25 10:12 princerajpoot20

@princerajpoot20

Image

this was disabled before that why ->CI pipeline is failing for now it have been enabled
->check it in action tab

Sourya07 avatar Dec 07 '25 11:12 Sourya07

am i missing something here ?

Sourya07 avatar Dec 07 '25 11:12 Sourya07

this was disabled before that why ->CI pipeline is failing

Don’t you think there must be a reason why we disabled it

princerajpoot20 avatar Dec 07 '25 11:12 princerajpoot20

Actually from my point of view I thought that it can be issue that’s why I mentioned that . Thanks for your time ☺️

Sourya07 avatar Dec 07 '25 11:12 Sourya07

Hi, So investigated https://github.com/asyncapi/website/actions/runs/20127457536/job/57760392927?pr=4703. Other places it seems to be a lint error.

The test start function › should throw an error if no finance data is found was failing on macOS (but passing on Ubuntu) in CI. The test expected fs.readdirSync to be called once, but it was called twice.

Root cause: scripts/index.ts was calling start() at module load time (line 68). When Jest imported the module, start() ran during import, then again when the test called it, causing the double call.

@princerajpoot20 let me know what you think. I am opening a pr to propose solution. Let me know if i missed something.

Shriya-Chauhan avatar Dec 18 '25 18:12 Shriya-Chauhan

#4735

Shriya-Chauhan avatar Dec 18 '25 19:12 Shriya-Chauhan

So I just got to know that there is a newly created duplicate issue (#4732) created, and it seems like multiple people are working on the same thing. We should not have this situation.

Umm… let me see what I can do.

princerajpoot20 avatar Dec 19 '25 15:12 princerajpoot20

Kinda resolved on the latest PRs. Closing this.

Can reopen if it occurs again.

anshgoyalevil avatar Dec 30 '25 12:12 anshgoyalevil