QuantumKatas icon indicating copy to clipboard operation
QuantumKatas copied to clipboard

Add CI job to validate the Katas on the current M.Q.Katas package

Open tcNickolas opened this issue 2 years ago • 0 comments

Currently all CI build jobs in the Katas CI build use the latest released Microsoft.Quantum.Katas package (the version defined in the .csproj files). E2E builds build the package currently defined in the code and then update the katas to use that package before running the validations. This means that when a bad change is introduced to the M.Q.Katas package, Katas CI build can pass but the E2E build can fail.

We need to add a new CI build job that follows the same pattern as the E2E builds:

  • Build the M.Q.Katas package from the latest code
  • Use that package to test a subset of katas that use the QuantumSimulator and the various features of the CounterSimulator (don't have to test all the katas, since most of them rely on the same functionality)

An example of the change that brought this up is https://github.com/microsoft/QuantumKatas/tree/mariia/count-nary-operations (in particular, changing CounterSimulator's _operationsCount key from ICallable to String), which causes the later cells in DeutschJozsaAlgorithm kata to fail validation, but the katas that don't use CounterSimulator functionality still passed.

https://github.com/microsoft/QuantumKatas/pull/690 attempted to fix this, but with that PR the CI build fails on the first cell of each notebook, including the ones which use only QuantumSimulator.

tcNickolas avatar Jan 30 '22 02:01 tcNickolas