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

6 ➡️ 7 (main) #201

Merged
merged 14 commits into from
Sep 13, 2021
Merged

6 ➡️ 7 (main) #201

merged 14 commits into from
Sep 13, 2021

Conversation

mjcarroll
Copy link
Contributor

➡️ Forward port

Port ign-fuel-tools6 to main

Branch comparison: main...ign-fuel-tools6

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

chapulina and others added 13 commits March 31, 2021 14:15
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
* Fixed donwload on Windows

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed interface_TEST

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Windows

Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>

* Fixed test

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fix some nits

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved Windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Linux

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feddback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
* added fuel update command

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed build

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* updated docs

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* added header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fix

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* nit2

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* Style, and headers

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fixed world download

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Removed debug

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix tests

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix windows

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
…191)

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
* Owner upload (#179)

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Louise Poubel <louise@openrobotics.org>

* Fixed windows download (#178)

* Fixed donwload on Windows

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed interface_TEST

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Windows

Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>

* Fixed test

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fix some nits

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved Windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Linux

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feddback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Remove tools/code_check and update codecov (#187)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* added fuel update command (#185)

* added fuel update command

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed build

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* updated docs

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* added header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fix

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* nit2

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* Style, and headers

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fixed world download

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Removed debug

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix tests

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix windows

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>

* 🎈 4.4.0 (#190)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Detect ign instead of using cmake module to check for ignition-tools (#191)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Co-authored-by: Nate Koenig <nkoenig@users.noreply.github.com>
Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Jose Tomas Lorente <jtlorente@ekumenlabs.com>
Co-authored-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
@mjcarroll mjcarroll requested a review from nkoenig as a code owner August 27, 2021 16:05
@mjcarroll mjcarroll changed the title Ports/6 to 7 6 ➡️ 7 Aug 27, 2021
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Aug 27, 2021
@codecov
Copy link

codecov bot commented Aug 27, 2021

Codecov Report

Merging #201 (82ae2f7) into main (5e63428) will decrease coverage by 1.91%.
The diff coverage is 25.71%.

❗ Current head 82ae2f7 differs from pull request most recent head d2af0da. Consider uploading reports for the commit d2af0da to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
- Coverage   77.47%   75.55%   -1.92%     
==========================================
  Files          20       20              
  Lines        2672     2757      +85     
==========================================
+ Hits         2070     2083      +13     
- Misses        602      674      +72     
Impacted Files Coverage Δ
src/CollectionIdentifier.cc 96.15% <ø> (ø)
src/ign.cc 57.40% <0.00%> (-3.47%) ⬇️
src/FuelClient.cc 65.90% <23.33%> (-3.78%) ⬇️
src/Zip.cc 68.75% <50.00%> (-0.77%) ⬇️
src/WorldIter.cc 97.84% <60.00%> (-2.16%) ⬇️
src/Interface.cc 88.46% <100.00%> (ø)
src/LocalCache.cc 79.47% <100.00%> (ø)
src/ModelIdentifier.cc 92.35% <100.00%> (ø)
src/ModelIter.cc 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e63428...d2af0da. Read the comment docs.

@adlarkin
Copy link
Contributor

CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

LGTM, but Windows CI is still failing. Looking at the failure though, it shows that this is not a new failure (age of 21): https://build.osrfoundation.org/job/ign_fuel-tools-pr-win/61/testReport/

So, should Windows CI no longer be a required check? Or do we need to fix this test?

src/WorldIter.cc Outdated Show resolved Hide resolved
src/ign.hh Outdated Show resolved Hide resolved
@adlarkin
Copy link
Contributor

Looks like windows CI is still failing with 44c4b23:

C:\Jenkins\workspace\ign_fuel-tools-pr-win\ws\ign-fuel-tools\src\Helpers_TEST.cc:43
Expected equality of these values:
  testStr1
    Which is: "localhost:8000\\\\some\\\\path"
  uriToPath(uri)
    Which is: "localhost:8000\\some\\path"

@mjcarroll
Copy link
Contributor Author

@adlarkin Windows test should be resolved, but I'm not sure if it's the "correct" answer here.

While I understand that Windows uses backslashes for path separators, I don't believe that URIs should have to, in general. Looking at file URI scheme Wikipedia everything is using forward slashes.

Maybe @nkoenig or @ahcorde has some more insight?

@chapulina
Copy link
Contributor

chapulina commented Sep 3, 2021

While I understand that Windows uses backslashes for path separators, I don't believe that URIs should have to, in general.

URIs should always use /, and local paths use each system's separator. So the input to uriToPath is the same for all platforms, but the returned value is platform-specific.

Another thing to keep in mind is that Windows doesn't accept : in paths, so on gazebosim/gz-common#197 common::joinPaths was updated to strip that and other characters. So the expected path on Windows should be localhost8000 instead of localhost:8000.

@mjcarroll
Copy link
Contributor Author

Another thing to keep in mind is that Windows doesn't accept : in paths, so on gazebosim/gz-common#197 common::joinPaths was updated to strip that and other characters. So the expected path on Windows should be localhost8000 instead of localhost:8000.

That isn't what is currently happening on Windows, though. I just modified the test, and these are the values that make it pass:

uriToPath(common::URI uri{"http://localhost:8000/some/path"}); maps to localhost:8000\some\path
uriToPath(common::URI uri{"http://localhost:8000/some/path/"}); maps to localhost:8000\some\path\

@mjcarroll
Copy link
Contributor Author

I think the uriToPath should only accept file:// URIs. Everything else should probably fail?

@chapulina
Copy link
Contributor

That isn't what is currently happening on Windows, though.

Yeah I think we haven't fixed uriToPath yet

I think the uriToPath should only accept file:// URIs. Everything else should probably fail?

It looks like it's being used to convert the Fuel Server URL:

https://github.com/ignitionrobotics/ign-fuel-tools/search?q=uritopath

@chapulina chapulina added the beta Targeting beta release of upcoming collection label Sep 8, 2021
@Blast545
Copy link
Contributor

Blast545 commented Sep 9, 2021

@chapulina Windows CI is green with the changed tests in 0033e68, do you think this issue with uriToPath should be addressed before merging ign-common#246 or at another time?

👨‍🌾 I think it's ok to remove the tests as long as we add a note there and don't lose track of it. (I can open a follow up issue)

@Blast545 Blast545 mentioned this pull request Sep 9, 2021
7 tasks
@chapulina
Copy link
Contributor

Windows CI is green with the changed tests in 0033e68

I think we can merge the PR as is for now, but I think we should come back to fix the expectations later, because I think localhost:8000\some\path\ is not a valid Windows path.

do you think this issue with uriToPath should be addressed before merging ign-common#246 or at another time?

I think we don't need to block that for this

@Blast545
Copy link
Contributor

Blast545 commented Sep 9, 2021

I think we can merge the PR as is for now

Sure, I'll add an issue to fix the expectation at another time. Thanks!

@chapulina
Copy link
Contributor

@mjcarroll , can we clean up the commit history and get this in?

@chapulina chapulina changed the title 6 ➡️ 7 6 ➡️ 7 (main) Sep 13, 2021
Signed-off-by: Michael Carroll <michael@openrobotics.org>
@mjcarroll
Copy link
Contributor Author

@mjcarroll , can we clean up the commit history and get this in?

Done!

@chapulina chapulina merged commit ab7f309 into main Sep 13, 2021
@chapulina chapulina deleted the ports/6_to_7 branch September 13, 2021 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants