Conversation
|
Is it an |
I think the pdf should not be included in version control. It is binary and buildable from the controlled components, so as you say, we should not be saving a copy in version control. I don't think any of the other standards are storing the pdfs in version control. |
|
@tomdonaldson if that is the case, then the pdf should be removed with a rebase/force push, because otherwise it would be kept in version control, even if a new commit deletes it. |
|
yes, my bad. I did not add .pdf file in the .gitignore. THIS IS WRONG Don't know how the pdf ended up there for the .gitignore did actually contain it. |
|
btw, @tomdonaldson are all standards supposed to be under github/ivoa-std? |
998e321 to
8e6c2fe
Compare
|
ok, someone smarter than me re git(hub) should probably do this. CORRECTION with help of former CfA person I think I was able to remove the pdf file. |
@glemson Yes, standards should belong in ivoa-std. I'm not sure if there is a criteria for when things that might become a standard belong there. I don't think the WG chairs can create a new repository. That is probably something for the TCG chair, but I notice there are some other owners of the ivoa-std, so they probably can as well (https://github.com/orgs/ivoa-std/people?query=role%3Aowner), though I don't know if they are supposed to. This might be a good question for the IVOA #github-help Slack channel as well. |
8e6c2fe to
74193b6
Compare
|
On Wed, Apr 21, 2021 at 11:29:44AM -0700, Omar Laurino wrote:
Is it an `ivoatex` policy to include the PDF in version control? It
being in a binary format, and one that needs to be generated, it's
usually not a good idea to include it in version control. But
again, I am not sure if there are any established practices in this
context that call for it.
No built products should be committed to VCS (except perhaps for
role_diagram.pdf). That's what svnignore did, and the git port of
ivoatexDoc (I'm still soliciting contributors to finish it; this is
where IMHO our policies wrt ivoa-std -- which I've never quite
grasped -- should go) gives the recipes how to do that in git. See
https://github.com/msdemlei/ivoatexDoc or
http://docs.g-vo.org/ivoatexDoc.pdf for a built copy of the draft
that's occasionally updated.
In short, when starting a document, always do
```
git init
git submodule add https://github.com/ivoa-std/ivoatex
cp ivoatex/svn-ignore.txt .gitignore
git add .gitignore
```
in the new document directory. That will prevent most fumbles.
|
|
Actually I think one could make the case for our standards development to include the built products in the repo at certain points of its life cycle. For in contrast to say compiled class files in a software dev project, here the readable product happens to be the pdf file. If I want to evaluate the latest PR I may be doing this from a location that does not allow me to first build the result, then view it. E.g. when accessing github from a tablet. Having the PDF directly available on the site would I think be useful. One might allowthis only to a PR, i.e. not every push, but I can see a use. |
|
@glemson this is what build services (aka continuous integration) can do. The repository can have tags and releases with associated products. That's what I used to do with this document btw. At each PR the document was built automatically, and I think people are doing that with ivoa-tex as well. I'm not going to make blanket statements about never put a built product under version control, but it's rare. |
|
ok. if ivoatex/ivoa-std etc is set up like that then my case is moot. |
|
On Thu, Apr 22, 2021 at 07:37:23AM -0700, Gerard Lemson wrote:
ok. if ivoatex/ivoa-std etc is set up like that then my case is moot.
Is it @msdemlei ?
If the question is: "Don't include PDFs", then yes, don't do that,
because you'll have no end of ugly merge conflicts.
On the other hand, you can have pre-built PDFs for use on locked-down
platforms (or whatever) thanks to github actions integration
contributed by Grégory (which regrettably hasn't made it to
ivoatexDoc -- help is welcome!). ivoatex's README.rst says how to do
it; in short:
```
make github-preview
git commit -m 'Add/Update GH-Workflows for PDF Preview'
git push
```
|
|
Gerard,
If it helps you.. the Transform document is set up this way (as many
others, but I'm familiar with this one). You can use it as an example.
The .github/workflows/* - do the build on new commits, making a PDF
artifact
* There is a token/icon at the top of the README.md file, which points to
the artifact for easy access.
* And a link under Status, pointing to the ivoa document repository
version.
…On Fri, Apr 23, 2021 at 3:15 AM msdemlei ***@***.***> wrote:
On Thu, Apr 22, 2021 at 07:37:23AM -0700, Gerard Lemson wrote:
> ok. if ivoatex/ivoa-std etc is set up like that then my case is moot.
> Is it @msdemlei ?
If the question is: "Don't include PDFs", then yes, don't do that,
because you'll have no end of ugly merge conflicts.
On the other hand, you can have pre-built PDFs for use on locked-down
platforms (or whatever) thanks to github actions integration
contributed by Grégory (which regrettably hasn't made it to
ivoatexDoc -- help is welcome!). ivoatex's README.rst says how to do
it; in short:
```
make github-preview
git commit -m 'Add/Update GH-Workflows for PDF Preview'
git push
```
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMLJCWTLRXMPLVV4EPWKNLTKENBDANCNFSM43K22S3Q>
.
|
|
Question was whether the automation was set up.
I will try it out.
Thanks!
|
|
Hi. Trying this out. I have the button but it does not point to any PDF yet.
Do I have to make a new commit containing the .tex document for the PDF to be created in its special folder?
|
|
Hi @glemson , Apparently, the GitHub Workflow The Workflow failed at the step where it checks whether the PDF exists or not (see the detailed logs at https://github.com/ivoa/mapping-vodml/runs/2432401684?check_suite_focus=true). As far as I can see, the PDF Here is my quick guess. This test is done on 2 files:
When this Workflow will work, you should see a green tick symbol beside the last commit. Clicking on this green tick (or otherwise the red cross) will bring you to the summary and detailed logs of the corresponding Workflow's run. If the Workflow was a success, the PDF artefact should be accessible in this page ; you should see an 'Artefacts' section like in here in the ADQL repo. Anyway, the link you have in the |
I definitely have to do that....it is still in my TODO list. Sorry for the delay :( |
|
Thanks all for your help and comments. |
… to do with VO-DSL.
blind translation of md to tex. combined into one file following ivoatex structure.
Added ivoatex as submodule and copied Makefile.
Was able to build to pdf.