Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: use cuelang.org/go@v0.4.0 #1539

Merged
merged 1 commit into from
May 25, 2021

Conversation

myitcv
Copy link
Contributor

@myitcv myitcv commented May 20, 2021

deps: use cuelang.org/go@v0.4.0

The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

  • Make the iteration of directories stable in order to make debugging
    issues simpler.
  • Do not swallow JSON marshal errors when generating the resulting
    openapi files.
  • Handle change in labels now that definitions are prefixed with '#'
  • Properly construct relative path to allow api to be regenerated with
    a working directory of the tool repo (as a sibling of the api repo)
  • Result of 'make gen' that adds new license files as a result of
    transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.

@myitcv myitcv requested a review from a team as a code owner May 20, 2021 12:27
@istio-policy-bot
Copy link

😊 Welcome @myitcv! This is either your first contribution to the Istio tools repo, or it's been
awhile since you've been here.

You can learn more about the Istio working groups, code of conduct, and contributing guidelines
by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

@google-cla google-cla bot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label May 20, 2021
@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test labels May 20, 2021
@istio-testing
Copy link
Contributor

Hi @myitcv. Thanks for your PR.

I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

myitcv added a commit to myitcvforks/api that referenced this pull request May 20, 2021
This change is the result of regenerating using the version of
cuelang.org/go implied by istio/tools#1539.
@myitcv
Copy link
Contributor Author

myitcv commented May 20, 2021

Please see the commentary in istio/api#1999 (comment) which looks to explain the impact of this PR.

cc @mpvl

Copy link
Member

@jasonwzm jasonwzm left a comment

Choose a reason for hiding this comment

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

Thanks for doing it! LGTM!

@jasonwzm
Copy link
Member

@myitcv Will there be an improvement of the speed during generating schemas using the new version of cue?

@myitcv
Copy link
Contributor Author

myitcv commented May 20, 2021

@jasonwzm - thanks.

Before we merge this PR we need to resolve a couple of issues in istio/api#1999. I'm working on something that @howardjohn caught.

Will there be an improvement of the speed during generating schemas using the new version of cue?

We should be able to confirm more precisely when we resolve all the issues in istio/api#1999 😄

Our plan is to integrate the Istio project into our regression test corpus (https://github.com/cue-sh/unity) so that a) we don't regress against your usage of the API, and b) we can track (roughly, initially) the performance impact of changes. Integrating Istio is a bit trickier because we can't currently resolve the version of the this repo from a given commit of the api repo. But we can perhaps revisit that question once we have resolved all the issues and merge this PR and istio/api#1999.

@jasonwzm
Copy link
Member

/ok-to-test

@istio-testing istio-testing added ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. and removed needs-ok-to-test labels May 20, 2021
@howardjohn howardjohn added the do-not-merge Block automatic merging of a PR. label May 20, 2021
Copy link
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

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

Approved with a hold so it won't merge until we resolve the CRD issue

@myitcv myitcv changed the title deps: use cuelang.org/go@v0.3.2 deps: use cuelang.org/go@v0.4.0 May 21, 2021
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

myitcv added a commit to myitcvforks/api that referenced this pull request May 21, 2021
This change is the result of regenerating using the version of
cuelang.org/go implied by istio/tools#1539.
Copy link
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

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

LGTM as does the API PR. Thanks for the PRs! Do you mind waiting until we resolve istio/istio#32985 before merging? We are investigating massive increase in test failures and want to minimize changes to the build image to reduce the number of variables.

@myitcv
Copy link
Contributor Author

myitcv commented May 21, 2021

LGTM as does the API PR. Thanks for the PRs! Do you mind waiting until we resolve istio/istio#32985 before merging? We are investigating massive increase in test failures and want to minimize changes to the build image to reduce the number of variables.

No problem at all, and thanks for looking at this so promptly.

We can't merge this yet in any case for two reasons:

  • I'm just in the process of fixing up staticcheck failures as a result of the move to cuelang.org/go@v0.4.0 (see failures above)
  • cuelang.org/go@v0.4.0 hasn't actually been released yet 😄 This PR was originally created to bump to cuelang.org/go@v0.3.2. But cuelang.org/go@v0.4.0 is about to be released, and given the issues I was investigating in all: regenerate using tools with cuelang.org/go@v0.4.0 api#1999 uncovered a bug we have just fixed, it makes sense to wait for v0.4.0

So, very happy for this to remain on hold. I will give a 👍 when things look good from our side.

@myitcv myitcv force-pushed the deps_cue_v0.3.2 branch 3 times, most recently from b348678 to 4159a24 Compare May 24, 2021 06:39
@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 24, 2021
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
@myitcv
Copy link
Contributor Author

myitcv commented May 25, 2021

@howardjohn we have just released CUE v0.4.0 and so I've updated this PR to use that version.

For now I've simply added //nolint:staticcheck to various parts of the cue-gen command in order to pass staticcheck lints (the build is now green apart from what looks like an unrelated failure?). My plan is to remove all such annotations in a later PR, which will refactor cue-gen to use non-deprecated CUE API.

So this PR is now good to go from my perspective.

istio/api#1999 is also ready therefore and I will add a comment there to that effect.

@howardjohn howardjohn removed the do-not-merge Block automatic merging of a PR. label May 25, 2021
@howardjohn
Copy link
Member

/retest

@istio-testing istio-testing merged commit 5739030 into istio:master May 25, 2021
pull bot pushed a commit to XionZhao/tools that referenced this pull request May 25, 2021
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
pull bot pushed a commit to XionZhao/tools that referenced this pull request May 25, 2021
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
@myitcv myitcv deleted the deps_cue_v0.3.2 branch May 26, 2021 14:41
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jun 30, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jun 30, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jun 30, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jul 6, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jul 6, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jul 6, 2022
The current version of cuelang.org/go (76252f4b7486) is now more than a
year old. Since then, there have been significant improvements to
performance and correctness as part of a rewrite of the evaluation
engine.

This change bumps the tools repo to the latest stable version of CUE,
v0.4.0.

Also:

* Make the iteration of directories stable in order to make debugging
  issues simpler.
* Do not swallow JSON marshal errors when generating the resulting
  openapi files.
* Handle change in labels now that definitions are prefixed with '#'
* Properly construct relative path to allow api to be regenerated with
  a working directory of the tool repo (as a sibling of the api repo)
* Result of 'make gen' that adds new license files as a result of
  transitive dependencies bumping with the move to cuelang.org/go@v0.4.0

A fix to drop the uses of nolint:staticcheck and upgrade Istio to use
non-deprecated parts of the CUE API will follow in a later PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
5 participants