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

Fix semantics and rename http flag #2122

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

kakkoyun
Copy link
Member

@kakkoyun kakkoyun commented Nov 16, 2022

  • Fix semantics for http address flag
  • Deprecate port flag
  • Unify debuginfo flags

Signed-off-by: Kemal Akkoyun kakkoyun@gmail.com

@kakkoyun kakkoyun requested review from a team as code owners November 16, 2022 12:39
@kakkoyun kakkoyun changed the title Fix semantics for http address flag. Fix semantics for http address flag Nov 16, 2022
@@ -133,6 +135,11 @@ func Run(ctx context.Context, logger log.Logger, reg *prometheus.Registry, flags
defer closer()
}

if flags.Port != "" {
level.Warn(logger).Log("msg", "flag --port is deprecated, use --http-address instead")
Copy link
Member

Choose a reason for hiding this comment

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

We broke a bunch of flags in this release I think adding one more doesn’t make a difference

Copy link
Member

Choose a reason for hiding this comment

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

Agreed.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

Copy link
Member Author

@kakkoyun kakkoyun Nov 18, 2022

Choose a reason for hiding this comment

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

I'd done it but then reverted; it broke the snap. I think this is one of the oldest flags, so let's not ruin the backward compatibility on this one.

Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

lgtm

@kakkoyun kakkoyun requested a review from a team as a code owner November 16, 2022 13:25
Copy link
Contributor

@javierhonduco javierhonduco left a comment

Choose a reason for hiding this comment

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

🎉

Deprecate port flag

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
@kakkoyun kakkoyun changed the title Fix semantics for http address flag Fix semantics and rename flags Nov 18, 2022
@kakkoyun kakkoyun changed the title Fix semantics and rename flags Fix semantics and rename http flag Nov 18, 2022
@kakkoyun kakkoyun merged commit fa0f5de into parca-dev:main Nov 18, 2022
@kakkoyun kakkoyun deleted the fix_flag_semantics branch November 18, 2022 12:18
fabxc pushed a commit to fabxc/parca that referenced this pull request Dec 5, 2022
* Fix semantics for http address flag.

Deprecate port flag

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>

* Address CI issues

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>

* CI fixes

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants