Pipelines always failing for external PRs #387
Labels
maintenance
Dependency issues or package docs.
need more info
This needs to be discussed or investigated more.
As pointed out here https://github.com/mollie/mollie-api-node/releases/tag/untagged-fa5121ce368cb7916910, all pipelines run against PRs from forked repos now fail, since they do not have access to the API test key used for integration tests.
From the github docs:
In our case the test API key being hardcoded into the workflow was not meant to be a long term solution. The idea was to run the tests against the actual API locally and record the responses as snapshots. Then in the pipelines only run tests against those snapshots.
To fix this now, we can either work to implement this test-flow now or create a separate pipline workflow for (forked?) pull requests.
One obvious change would be to exclude the integration tests in those.
The downside here would be that failing tests would only appear once merged.
On the other hand this would also be a problem with the above mentioned flow of generating snapshots: Any external PR could not include the integration tests for their code changes and the pipelines would also not definitively verify wether or not the changes would break existing (integration) tests. For example they might work against the snapshots but fail agains the actual API results, which might be different with the changed code.
How do we want to approach this?
The text was updated successfully, but these errors were encountered: