Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

fix(testing): Don't add ignored diagnostics to errors validation #283

Merged
merged 1 commit into from
May 25, 2022

Conversation

erezrokah
Copy link
Member

@erezrokah erezrokah commented May 24, 2022

🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉

Summary

Related to cloudquery/cq-provider-gcp#267.
The tests on cloudquery/cq-provider-gcp#267 are failing since we validate ignored errors.
Relevant SDK code is

diags = diags.Add(e.handleResolveError(meta, resource, err, diag.WithSeverity(diag.IGNORE), diag.WithSummary("column resolver %q failed for table %q", c.Name, e.Table.Name)))


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run --new-from-rev main 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested a review from a team as a code owner May 24, 2022 08:58
@erezrokah erezrokah requested review from bbernays and removed request for a team May 24, 2022 08:58
@github-actions github-actions bot added the fix label May 24, 2022
@github-actions github-actions bot added fix and removed fix labels May 24, 2022
Copy link
Member

@disq disq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a func (d Diagnostics) FilterBySeverity(sevs ...Severity) Diagnostics can be added to our diag api.

@kodiakhq kodiakhq bot merged commit 370da1e into cloudquery:main May 25, 2022
kodiakhq bot pushed a commit that referenced this pull request May 25, 2022
🤖 I have created a release *beep* *boop*
---


### [0.10.2](v0.10.1...v0.10.2) (2022-05-25)


### Bug Fixes

* **testing:** Don't add ignored diagnostics to errors validation ([#283](#283)) ([370da1e](370da1e))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@erezrokah erezrokah deleted the fix/integration_testing branch May 25, 2022 08:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants