apiops icon indicating copy to clipboard operation
apiops copied to clipboard

[BUG] Unhandled exception. System.IO.FileNotFoundException: The configuration file 'configuration.prod.yaml' was not found and is not optional.

Open jblaaa-codes opened this issue 1 year ago • 4 comments

Release version

v6.0.1

Describe the bug

Following the current instuctions for v6.0.1 I didn't see references to create this file. configuration.prod.yaml. I have a github environment with the secrets from the documentation but the GH action fails until you create the file.

Expected behavior

action should continue if you do not have any GH environment overrides and the file does not exist or the documentation may need to be updated.

Actual behavior

created a blank file and the error goes away.

Reproduction Steps

run through the APIOPs documentation in a new GH repo. publish your first change to an API and promote up to prod.

jblaaa-codes avatar Aug 10 '24 17:08 jblaaa-codes

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

github-actions[bot] avatar Aug 10 '24 17:08 github-actions[bot]

We have a sample file on the home repo. Also our wiki goes into specifics on how to create it. Finally, you can reference the official documentation of the APIM restful API, which basically tells you what the configuration should look like as APIops follows their specification.

waelkdouh avatar Aug 10 '24 18:08 waelkdouh

I'm getting same error Unhandled exception. System.IO.FileNotFoundException: The configuration file '' was not found and is not optional.

If the configuration file is not optional then why there's this condition

      ${{ if ne( parameters['CONFIGURATION_YAML_PATH'], '' ) }}:
        CONFIGURATION_YAML_PATH: ${{ parameters.CONFIGURATION_YAML_PATH }}

& https://github.com/Azure/apiops/blob/6e9f9b73d1a76c1811e6e578aced64615b17591a/tools/azdo_pipelines/run-publisher-with-env.yaml#L155C1-L156C75

manisha-tanwar avatar Dec 02 '24 13:12 manisha-tanwar