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

chore: add agentapi tests#11269

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
deansheather merged 7 commits intomainfromdean/agent-api-tests
Jan 26, 2024
Merged

chore: add agentapi tests#11269

deansheather merged 7 commits intomainfromdean/agent-api-tests
Jan 26, 2024

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedDec 18, 2023
edited
Loading

The tests added in this PR can be reviewed now as I probably won't be changing them (other than review comments). I'll be adding more tests for the files TODOd below in upcoming commits and I'll re-request review.

In most cases the new tests have more cases/coverage than the old ones which is nice. Some of them are quite verbose though, as I tried to maximize usage of fields on types and enums (to get conversion coverage).

TODOs:

  • metadata.go
  • stats.go
  • tailnet.go

@deansheatherdeansheather self-assigned thisDec 18, 2023
@deansheatherdeansheather marked this pull request as draftDecember 18, 2023 18:16
@deansheatherdeansheather marked this pull request as ready for reviewDecember 19, 2023 12:12
@deansheatherGraphite App
Copy link
MemberAuthor

deansheather commentedDec 19, 2023
edited
Loading

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@deansheather and the rest of your teammates onGraphiteGraphite

Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

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

I didn't finish this review, but I'm sending the comments I have since you're in a different timezone

},
}
}
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should break the manifest up into separate API calls. It's kind of a dumping ground for lots of different, unrelated kinds of information...

Not that I'm expecting it in this PR.

now, err := time.Parse("2006-01-02 15:04:05 -0700 MST", "2023-12-19 07:30:00 +1100 AEDT")
require.NoError(t, err)
now = dbtime.Time(now)
nextAutostart := now.Add(30 * time.Minute).UTC() // always sent to DB as UTC
Copy link
Contributor

Choose a reason for hiding this comment

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

to me, this smells like we need to refactor. The AgentAPI should not be in the business of computing autostart times. There should be a scheduler component that gets an activity indication from the Agent API and it computes and decides how to update the autostart / autostop schedule.

Another one for some other PR...

@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelJan 2, 2024
@matifalimatifali removed the staleThis issue is like stale bread. labelJan 2, 2024
@github-actionsgithub-actionsbot added staleThis issue is like stale bread. and removed staleThis issue is like stale bread. labelsJan 10, 2024
@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelJan 21, 2024
@deansheatherdeansheather removed the staleThis issue is like stale bread. labelJan 25, 2024
@deansheatherdeansheatherenabled auto-merge (squash)January 26, 2024 06:52
@deansheatherdeansheather merged commit2970709 intomainJan 26, 2024
@deansheatherdeansheather deleted the dean/agent-api-tests branchJanuary 26, 2024 07:04
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 26, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@deansheatherdeansheather

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@deansheather@spikecurtis@matifali

[8]ページ先頭

©2009-2025 Movatter.jp