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

Ebonilla/sy 749 opc ua read task cleanup and tests #640

Merged
merged 41 commits into from
Jun 15, 2024

Conversation

emilbon99
Copy link
Contributor

No description provided.

LeonLiur and others added 28 commits May 28, 2024 11:49
…sy-693-support-for-cesium-writer-err-on-unauthorized
…nto 585-sy-693-support-for-cesium-writer-err-on-unauthorized
…nto 585-sy-693-support-for-cesium-writer-err-on-unauthorized
…nto ebonilla/sy-749-opc-ua-read-task-cleanup-and-tests
…nto ebonilla/sy-749-opc-ua-read-task-cleanup-and-tests
…la/sy-749-opc-ua-read-task-cleanup-and-tests
Copy link

vercel bot commented Jun 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 8:32pm

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 53.04878% with 77 lines in your changes missing coverage. Please review.

Please upload report for BASE (rc@f8f5082). Learn more about missing BASE report.

Files Patch % Lines
synnax/pkg/api/grpc/v1/hardware.pb.go 0.00% 15 Missing ⚠️
synnax/pkg/api/grpc/hardware.go 0.00% 14 Missing ⚠️
synnax/pkg/hardware/task/service.go 35.71% 6 Missing and 3 partials ⚠️
synnax/pkg/hardware/service.go 0.00% 7 Missing ⚠️
synnax/pkg/hardware/task/retrieve.go 22.22% 6 Missing and 1 partial ⚠️
synnax/pkg/api/grpc/v1/channel.pb.go 0.00% 5 Missing ⚠️
synnax/pkg/api/hardware.go 0.00% 5 Missing ⚠️
x/go/gorp/delete.go 84.84% 4 Missing and 1 partial ⚠️
cesium/internal/unary/writer.go 57.14% 2 Missing and 1 partial ⚠️
cesium/internal/virtual/db.go 85.00% 2 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@          Coverage Diff          @@
##             rc     #640   +/-   ##
=====================================
  Coverage      ?   51.64%           
=====================================
  Files         ?     1040           
  Lines         ?    78517           
  Branches      ?     3249           
=====================================
  Hits          ?    40554           
  Misses        ?    36988           
  Partials      ?      975           
Flag Coverage Δ
aspen 50.18% <ø> (?)
cesium 73.02% <73.33%> (?)
clientpy 87.38% <ø> (?)
clientts 86.67% <100.00%> (?)
gox 58.25% <84.84%> (?)
synnax 27.20% <30.43%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…la/sy-749-opc-ua-read-task-cleanup-and-tests
Copy link
Contributor

@LeonLiur LeonLiur left a comment

Choose a reason for hiding this comment

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

Good after some minor changes

func Open(configs ...Config) (db *DB, err error) {
cfg, err := config.New(DefaultConfig, configs...)
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap

c, err := controller.New[*controlEntity](controller.Config{
Concurrency: control.Shared,
Instrumentation: cfg.Instrumentation,
})
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap

@@ -20,6 +21,7 @@ var _ = Describe("Write", func() {
DataType: telem.TimeStampT,
Virtual: true,
},
FS: xfs.NewMem(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only mem FS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FS implementation is still checked for in the config but does not apply to any test cases. Feel free to adjust as you build out future test suites

@@ -59,9 +59,9 @@ void Frame::toProto(api::v1::Frame *f) const {

// implement th ostream operator
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: the

@@ -170,9 +170,9 @@ class Streamer {
};

enum WriterMode : uint8_t {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need WriteMode if we got rid of SetMode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you can set the mode when opening the writer

}


std::pair<Task, freighter::Error> TaskClient::retrieveByType(
Copy link
Contributor

Choose a reason for hiding this comment

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

why are some functions snake case and some functions camel case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to standardize the convention we use. I'll leave this to @Lham42 as a chore

time_range=sy.TimeRange(
start=above_threshold, end=value["daq_time"][-1]
),
color="#BADA55",
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting hex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha

…la/sy-749-opc-ua-read-task-cleanup-and-tests
@Lham42 Lham42 merged commit d2e8e26 into rc Jun 15, 2024
49 checks passed
@emilbon99 emilbon99 deleted the ebonilla/sy-749-opc-ua-read-task-cleanup-and-tests branch July 1, 2024 19:28
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.

3 participants