Skip to content

[sdn_tests]: Adding Build support for pins_ondatra.#12658

Merged
vamsipunati merged 1 commit intosonic-net:masterfrom
VSuryaprasad-HCL:Branch1
May 7, 2024
Merged

[sdn_tests]: Adding Build support for pins_ondatra.#12658
vamsipunati merged 1 commit intosonic-net:masterfrom
VSuryaprasad-HCL:Branch1

Conversation

@VSuryaprasad-HCL
Copy link
Contributor

@VSuryaprasad-HCL VSuryaprasad-HCL commented Apr 30, 2024

Description of PR

[sdn_tests]: Adding Build support for pins_ondatra.

Summary:

  • Adding Build support for pins_ondatra.

Build Result:

   INFO: Analyzed 0 targets (1 packages loaded, 0 targets configured).
   INFO: Found 0 targets...
   INFO: Elapsed time: 0.746s, Critical Path: 0.02s
   INFO: 1 process: 1 internal.
   INFO: Build completed successfully, 1 total action

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • [-] Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

git_repository(
name = "sonic_swss_common",
commit = "672b1cfe1914489b79a91fff8a539b6c195f8959",
remote = "git@github.com:pins/sonic-swss-common.git",
Copy link
Contributor

Choose a reason for hiding this comment

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

@parth-opensrc What would be the sonic-net equivalent commit id ? We can't use PINS refpt here.

Choose a reason for hiding this comment

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

I think this repo may not be needed for ondatra, so can be removed for now.
I will clean up this file in future.

Copy link
Contributor

Choose a reason for hiding this comment

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

@VSuryaprasad-HCL Can you remove this and re-attach the pass build logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have addressed the changes and reattached the build log.

Copy link
Contributor

Choose a reason for hiding this comment

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

@VSuryaprasad-HCL Getting a 404 error on this url ? Maybe we haven't added the build targets that exercise this to cause a failure ?
cc: @parth-opensrc

Choose a reason for hiding this comment

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

Try removing it, if the build works, it should be fine to remove the dep.
If it doesn't, you can try changing the rule:

go_repository(
    name = "com_github_jstemmer_go_junit_report_v2",
    commit = "add_commit_hash", 
    importpath = "github.com/jstemmer/go-junit-report/v2",
    remote = "https://github.com/jstemmer/go-junit-report",
    vcs = "git"
)

Copy link
Contributor Author

@VSuryaprasad-HCL VSuryaprasad-HCL May 7, 2024

Choose a reason for hiding this comment

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

@parth-opensrc Tried removing the dep, The build was successful. Attaching the build info in the chat box.

     INFO: Analyzed 0 targets (1 packages loaded, 0 targets configured).
     INFO: Found 0 targets...
     INFO: Elapsed time: 2.596s, Critical Path: 0.02s
     INFO: 1 process: 1 internal.
     INFO: Build completed successfully, 1 total action

Copy link
Contributor

Choose a reason for hiding this comment

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

@vamsipunati, @parth-opensrc
This and the previous one, are we ok to include these as dependencies in sonic-net ?

Copy link

@parth-opensrc parth-opensrc May 6, 2024

Choose a reason for hiding this comment

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

Try removing the rules, if ondatra builds, then it should be okay to remove.

Ondatra uses these deps:
https://github.com/openconfig/ondatra/blob/main/internal/ixgnmi/ixgnmi.go#L39, and
https://github.com/openconfig/ondatra/blob/main/report/report_test.go#L23

We are using checksum, so it should be fine even if the deps aren't removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@parth-opensrc Tried removing the rules, The build was successful. Attaching the build info in the chat box

   INFO: Analyzed 0 targets (1 packages loaded, 0 targets configured).
   INFO: Found 0 targets...
   INFO: Elapsed time: 0.593s, Critical Path: 0.00s
   INFO: 1 process: 1 internal.
   INFO: Build completed successfully, 1 total action

@vamsipunati vamsipunati merged commit 6c7f128 into sonic-net:master May 7, 2024
@VSuryaprasad-HCL
Copy link
Contributor Author

#11771

mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Jul 17, 2024
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.

5 participants