|
|
Home » Developing U++ » U++ Developers corner » New UppHub root
|
Re: New UppHub root [message #56132 is a reply to message #56131] |
Sat, 30 January 2021 21:37 |
|
Klugier
Messages: 1084 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
As I proposed early UppHub should not be under mirek-fidler. It should be in ultimatepp organization as separate repository. The organization is easier to find and it is common good. Right now we have several people in organization, so we can give them rights to maintain the list. Also, I would like to have everything in one place. So, I do not jump to mirek-fidler when I am look at ultimatepp repository.
I still see that package manifest is integrated with the ".json" file. What is your plan here? Do you plan to let repository construct manifest and keep single link on the list?
Would be nice to have some hind of json validation on CI/CD to do not break the list. This can be implemented later.
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 30 January 2021 21:54] Report message to a moderator
|
|
|
|
Re: New UppHub root [message #56137 is a reply to message #56131] |
Sun, 31 January 2021 13:34 |
Novo
Messages: 1378 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Sat, 30 January 2021 14:50
The list is directly in readme.md, because why not...
It is not parsable as a JSON file ...
I cannot use it with my build automation system because of this markdown formatting:
Regards,
Novo
[Updated on: Sun, 31 January 2021 13:36] Report message to a moderator
|
|
|
|
|
Re: New UppHub root [message #56141 is a reply to message #56139] |
Sun, 31 January 2021 15:35 |
|
Klugier
Messages: 1084 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
Quote:
There is still a bug in this JSON file:
"readme": " https://raw.githubusercontent.com/mirek-fidler/gdal/master/R EADME.md"
}
}
(an extra curly brace ...)
This is what I wrote in the previous message - validation on the CI/CD side would be optimal. I also think that README.md shouldn't keep .json data. It should describe what the repository is and that's all. I think instruction would be helpful for new users. UppHub stuff should be stored separately as .json file and validate on each commit/PR. Simple and clean solution without nonstandard json embeeding in .md file.
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 31 January 2021 15:35] Report message to a moderator
|
|
|
Re: New UppHub root [message #56142 is a reply to message #56132] |
Sun, 31 January 2021 20:47 |
|
mirek
Messages: 14160 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Sat, 30 January 2021 21:37Hello Mirek,
As I proposed early UppHub should not be under mirek-fidler. It should be in ultimatepp organization as separate repository. The organization is easier to find and it is common good. Right now we have several people in organization, so we can give them rights to maintain the list. Also, I would like to have everything in one place. So, I do not jump to mirek-fidler when I am look at ultimatepp repository.
You are right, corrected.
Quote:
I still see that package manifest is integrated with the ".json" file. What is your plan here? Do you plan to let repository construct manifest and keep single link on the list?
Well, the idea is
a) this README.md is not to be visited by users, so it does not really matter
b) you can edit it directly in github
Quote:
Would be nice to have some hind of json validation on CI/CD to do not break the list. This can be implemented later.
Adding check to autotest...
Mirek
[Updated on: Sun, 31 January 2021 20:48] Report message to a moderator
|
|
|
|
Re: New UppHub root [message #56144 is a reply to message #56142] |
Sun, 31 January 2021 21:46 |
|
Klugier
Messages: 1084 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
Quote:
Well, the idea is
a) this README.md is not to be visited by users, so it does not really matter
b) you can edit it directly in github
The README.md can be visited by the user. If you found ultimatepp organization and then you are curious what is UppHub then you will see the list of the packages without any description. I think we need minimal README.md for UppHub repository. READSME.md file is all about communication with the visitor. If we push there dry data then the visitor will lose the learning opportunity. In our case README.md should contains description - what is UppHub and how can I add package to it, also adding links to our documentation would be valuable.
You can edit any file direcly on github not only README.md, so if you put upphub.json you can edit it too directly on GitHub (like any other text files). Please noticed that users outside organization will still needs to create PR for any modification. For us this is wanted behavior.
Quote:Adding check to autotest...
Can you publish the results of automation somewhere. I think it would be nice if we have idea how stable upp is at the moment. Now you have this knowledge This check is indeed the step in the good direction, however if I modify (as a maintainer) the file and break the json the regression will be detected later. Why do not integrate parsing validator that is offer by GitHub for free for open source organization. I can help with it. The check will be triggered automatically when someone push something to master or on PR.
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 31 January 2021 23:38] Report message to a moderator
|
|
|
Re: New UppHub root [message #56147 is a reply to message #56143] |
Mon, 01 February 2021 00:51 |
Novo
Messages: 1378 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Sun, 31 January 2021 14:56Novo wrote on Sun, 31 January 2021 13:34mirek wrote on Sat, 30 January 2021 14:50
The list is directly in readme.md, because why not...
It is not parsable as a JSON file ...
I cannot use it with my build automation system because of this markdown formatting:
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
HttpRequest r("https://raw.githubusercontent.com/ultimatepp/UppHub/main/README.md");
String s = r.Execute();
int begin = s.FindAfter("UPPHUB_BEGIN");
int end = s.Find("UPPHUB_END");
if(begin >= 0 && end >= 0)
s = s.Mid(begin, end - begin);
Value v = ParseJSON(s);
if(v.IsError()) {
s.Replace(""", "\"");
s.Replace("&", "&");
v = ParseJSON(s);
}
ASSERT(!v.IsError());
}
Thanks! I've fixed that already. BTW, my build automation system is written in Python ...
For some reason an UppHub repo has completely disappeared from GitHub ...
Regards,
Novo
|
|
|
|
Re: New UppHub root [message #56150 is a reply to message #56147] |
Mon, 01 February 2021 07:13 |
Novo
Messages: 1378 Registered: December 2006
|
Ultimate Contributor |
|
|
Novo wrote on Sun, 31 January 2021 18:51
For some reason an UppHub repo has completely disappeared from GitHub ...
I've found it in a new place ...
Regards,
Novo
|
|
|
Re: New UppHub root [message #56151 is a reply to message #56150] |
Mon, 01 February 2021 07:55 |
Novo
Messages: 1378 Registered: December 2006
|
Ultimate Contributor |
|
|
BTW, gdal cannot be compiled with cpp17.
/home/buildbot/worker/l-upphub-gdal/build/plugin/gdal/port/cpl_string.cpp:2405:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register unsigned char h1, h2;
^~~~~~~~~
Regards,
Novo
|
|
|
Re: New UppHub root [message #56158 is a reply to message #56149] |
Tue, 02 February 2021 00:56 |
|
Klugier
Messages: 1084 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
I added support for CircleCI that runs jsonschema after each commit. Here is the PR. This should detects any mistake very fast and it should prevent from committing faulty json. Also, it supports schema, so we can extend it to make sure that json have tags we desired.
Please review and apply. Also, the nests was moved from README.md to nests.json.
Klugier
U++ - one framework to rule them all.
[Updated on: Tue, 02 February 2021 01:15] Report message to a moderator
|
|
|
Re: New UppHub root [message #56160 is a reply to message #56158] |
Tue, 02 February 2021 01:17 |
|
mirek
Messages: 14160 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Tue, 02 February 2021 00:56Hello Mirek,
I added support for CircleCI that runs jsonschema after each commit. Here is the PR. This should detects any mistake very fast and it should prevent from committing faulty json. Also, it supports schema, so we can extend it to make sure that json have tags we designed.
Please review and apply. Also, the nests was moved from README.md to nests.json.
Klugier
No need to review at this time, apply it. In general: You have rights for UppHub, do whatever you think is necessarry. We can fix things that do not work later.
That said, while json is fine, the necessarry test after each edit will be in TheIDE anyway...
Mirek
|
|
|
|
Goto Forum:
Current Time: Sat Dec 07 21:25:11 CET 2024
Total time taken to generate the page: 0.02624 seconds
|
|
|