Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: track JetBrains connections#10968

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 12 commits intomainfromjetbrains/track_connections
Dec 7, 2023
Merged

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedDec 1, 2023
edited
Loading

Fixes#9673

Possibly we will need to find a better string to match on, but this one seems OK to me.

Unit test passes but have not tested an actual deploy yet.

@code-ashercode-asher changed the titleTrack JetBrains connectionsfix: track JetBrains connectionsDec 1, 2023
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch from7948ab5 toe7f9516CompareDecember 1, 2023 00:24
@matifali
Copy link
Member

@code-asher Try./scripts/deploy-pr.sh

code-asher reacted with eyes emoji

@code-asher
Copy link
MemberAuthor

Verified it works! 🎉

matifali reacted with heart emoji

@code-ashercode-asher marked this pull request as ready for reviewDecember 1, 2023 19:50
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch 2 times, most recently fromfe83fbd to9dede7fCompareDecember 1, 2023 20:18
@code-ashercode-asher removed the request for review fromEmyrkDecember 1, 2023 20:19
@code-asher
Copy link
MemberAuthor

Ah wait moving back to draft, there seems to be an issue...

Emyrk reacted with confused emoji

@code-ashercode-asher marked this pull request as draftDecember 1, 2023 20:20
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch from9dede7f to9840a69CompareDecember 1, 2023 20:45
@code-asher
Copy link
MemberAuthor

The two issues I ran into, just FYI:

  • I had the process name check reversed, needed a! 🤦
  • Netstat only gives the base name, not the full command line, so I need to read/proc/$pid/cmdline to get that.

I think it is all sorted now, doing some more testing to be sure.

@code-asher
Copy link
MemberAuthor

OK, verified it all works as expected in a deployment. Test is failing in CI though. Passes for me locally...

@Emyrk
Copy link
Member

Test is failing in CI though. Passes for me locally...

Ooof, this test is quite strange too. That sounds annoying to debug...

Uset.Log() to log statements, and keep them there.

code-asher reacted with thumbs up emoji

code-asherand others added6 commitsDecember 1, 2023 12:05
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch from64ea05d to6e8f235CompareDecember 1, 2023 21:06
@matifali
Copy link
Member

Will this also work for Fleet?

@code-ashercode-asherforce-pushed thejetbrains/track_connections branch frome79b01c toec59e7eCompareDecember 1, 2023 21:27
@code-asher
Copy link
MemberAuthor

Will this also work for Fleet?

I am not sure, we will need to test.

matifali reacted with thumbs up emoji

@code-ashercode-asherforce-pushed thejetbrains/track_connections branch fromec59e7e to90e6e88CompareDecember 1, 2023 21:43
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch 2 times, most recently from9cf5082 to7fd04cbCompareDecember 1, 2023 23:19
The test name only shows up in the process name if you are running thattest directly so we have to spawn a separate process instead.
@code-ashercode-asherforce-pushed thejetbrains/track_connections branch from7fd04cb toa75ed6cCompareDecember 1, 2023 23:26
@code-asher
Copy link
MemberAuthor

OK, sorted the test. The test name only shows up in the process name if you run that specific test directly, so when we are running the entire suite the name does not show up.

What I did was spawn an external process instead. Not sure if I did it in an idiomatic way or if there even is an idiomatic way, with Node I would justfork to create child processes using the same Node binary but I am not seeing an equivalent in Go, at least not without a new package dependency. So I have this jankyexec.Command("go", "run", ...) type of deal.

We could also try spawning something likenc instead of a Go program. but I am not sure how commonlync is installed.

@code-ashercode-asher marked this pull request as ready for reviewDecember 1, 2023 23:33
Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

Looks good, let's get this in and test it a bit.

@code-ashercode-asher merged commitdbbf8ac intomainDec 7, 2023
@code-ashercode-asher deleted the jetbrains/track_connections branchDecember 7, 2023 21:15
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 7, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk approved these changes

Assignees

@code-ashercode-asher

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

API:/api/v2/deployment/stats does not return count for JetBrains Gateway sessions
3 participants
@code-asher@matifali@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp