Discourse Locations main does not work on tests-passed

Discourse Locations either has a bug, or is incompatible with the Discourse commit linked below.

Time: 2023-04-10T17:02:14+00:00
Message: ````

Discourse

Branch: tests-passed
SHA:

Plugin

Branch: main
SHA:

Details

Just checking this as it is still showing as Tests Failing on Plugin Status.

Is there an issue or does it just need to be reset?

Iā€™ll take a look when I get chance.

1 Like

Ran both the front and back tests on client and had no failures :thinking:

1 Like

@angus when you get chance could you please respond to this query: FIX: location search debounce by renato Ā· Pull Request #79 Ā· paviliondev/discourse-locations Ā· GitHub

Btw no test failures on this PR run either.

Done! Merged.

2 Likes

Sorry @angus - Iā€™ve re-opened this as the original issue is still there.

So why is it still showing this on the Plugin Status page?

Because that status was set prior to our update to the PMS and the update made it so that only plugins using the Discourse Plugins workflow would get an updated status. So the solution is to just add the Discourse Plugins workflow to locations. Iā€™ll do that now.

@merefield @richard This is another opportunity to see how the PMS works with our plugin workflows.

A few things to note:

  1. The PMS tests failing status is only responsive to the ā€œDiscourse Pluginā€ workflow now. That is the new standard for all of our plugins. We also add the metadata workflow in to ensure version progression.

  2. Minor note: when you first apply the metadata workflow in a PR it wonā€™t work because github canā€™t find semver bundled in the plugin repo (because itā€™s in the PR). That check will always fail the first time itā€™s merged (but shouldnā€™t fail on subsequent merges).

Iā€™ve gone ahead and merged this so the locations plugin status gets updated properly in the PMS. Let me know if you have any questions!

Note: the PMS status will update the next time this job runs (probably will have run by the time you read this - it runs every 10 mins)

1 Like

Discourse Locations has recovered from this issue.

3 Likes

Wow, @system great job :wink:

Thanks @Angus!

2 Likes

Yup, the test status was updated as expected. One final note here. The status is currently ā€œUnknownā€.

That is because when a plugin in PMS recovers from ā€œtests failingā€ it is set to move to an unknown status. It will change to ā€œcompatibleā€ the next time it receives a ā€œcompatibleā€ status from a canary server. This means a ā€œcompatibleā€ status always requires a double positive, i.e. both tests passing and successful canary build.

1 Like

I note that Events is also ā€œUnknownā€ - and has been stuck on that for a while.

This was because the tests-passed canary server wasnā€™t being rebuilt properly. Iā€™ve fixed that and the statuses are working. Iā€™ve also pointed the cronitor alerts (which will tell us if a canary server process has failed) to support@pavilion.tech (and added you to that group as well). Iā€™ve also written up a guide on how to address such issues. We can continue this conversation there if you have further questions:

https://coop.pavilion.tech/t/how-to-action-canary-server-issues/2749

2 Likes