question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid deprecation warnings coming from terra

See original GitHub issue

What is the expected behavior?

The test suite currently emits several deprecation warnings, mostly due to the use of qiskit.compile(), which is to be deprecated in 0.9. We should move the tests to use the new transpilation workflow accordingly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jwoehrcommented, May 6, 2019

You mean I’m actually going to have to think?! No fair! 😃 Thanks for the help, @diego-plan9 , I’ll continue to work on this.

1reaction
diego-plan9commented, Apr 4, 2019

Cool, thanks again! I’d suggest tackling them in separate PRs, even if both are test-related.

I am not quite clear on how the test harness works to run the tests. What should I explore, please?

Usually the output of running make test locally would work - even if it might be a bit messy. Failing that, another way would be to look at the travis logs - for example, the latest master commit at https://travis-ci.com/Qiskit/qiskit-ibmq-provider/jobs/190031347 shows warnings such as:

test_qobj_headers_in_result_sims (test.ibmq.test_ibmq_backends.TestIBMQBackends)
Test that the qobj headers are passed onto the results for sims. ... /home/travis/build/Qiskit/qiskit-ibmq-provider/qiskit-terra/qiskit/tools/compiler.py:50 *DeprecationWarning: qiskit.compile() is deprecated and will be removed in Qiskit Terra 0.9. Please use qiskit.transpile() to transform circuits and qiskit.assemble_circuits() to produce qobj.

Those lines would hopefully point towards where the deprecated instruction is being used (test.ibmq.test_ibmq_backends.TestIBMQBackends.test_qobj_headers_in_result_sims), and hints on what the new behaviour is (in this case, replacing the compile(..) at 97).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Any way to disable new deprecation warnings? - Terraform
Any way to disable new deprecation warnings? ... So as of the latest Terraform binary from last week, I'm now being flooded with...
Read more >
java - How to avoid deprecation warnings when ...
Recently we decide to deprecate a class. The problem is in some cases @SuppressWarnings("deprecation") will not suppress the deprecation warning ...
Read more >
The Complete Guide for Deprecation Warnings in Rails
When it comes to production, the easiest way to discover deprecation warnings is by using a monitoring tool (like Honeybadger or Airbrake).
Read more >
Warning: Helpful Warnings Ahead - Kubernetes
During the deprecation period, the pre-release API remains functional, allowing several releases to transition to the stable API version.
Read more >
Release Notes - Qiskit
Qiskit Metapackage Version qiskit‑terra qiskit‑aer qiskit‑ibmq‑provider Release Date 0.39.4 0.22.3 0.11.2 0.19.2 2022‑12‑08 0.39.3 0.22.3 0.11.1 0.19.2 2022‑11‑25 0.39.2 0.22.2 0.11.1 0.19.2 2022‑11‑03
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found