Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-30199

Mark ap_verify dataset files as generated

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ap_verify
    • Labels:

      Description

      Spencer Nelson mentioned that files can be marked as generated to keep them from appearing in GitHub diffs. This would be very useful for the ap_verify datasets, whose updates include some human-unreadable text files.

      In ap_verify_testdata, ap_verify_ci_cosmos_pdr2, ap_verify_ci_hits2015, and ap_verify_hits2015, mark at least the export.yaml file as generated (since this is always a dump of the "preloaded" repository). Consider also marking gen3.sqlite3 and other Gen 3 repository files; however, at least the last would need to be undone once we moved to pure Gen 3 datasets.

        Attachments

          Issue Links

            Activity

            Hide
            krzys Krzysztof Findeisen added a comment - - edited

            Hmm... testing this change on ap_verify_ci_hits2015 suggests no actual effect: export.yaml shows up as just another very large diff, which was the behavior before.

            Show
            krzys Krzysztof Findeisen added a comment - - edited Hmm... testing this change on ap_verify_ci_hits2015 suggests no actual effect: export.yaml shows up as just another very large diff, which was the behavior before .
            Hide
            krzys Krzysztof Findeisen added a comment - - edited

            Spencer Nelson assures me that the change will work once .gitattributes is merged, so I propose the following sequence for this ticket, derived from how Kian-Tat Lim told me to handle similarly "meta" updates to Jenkins pipelines:

            • Review the .gitattributes update for all four packages, per normal procedure.
            • Merge one of the packages
            • Create and upload a new u/kfindeisen/DM-30199 branch in that package that updates the repository (this branch should appear in the Jira branch tracker), and use it to test the change
            • If all is well, merge the other packages; if not, revert the one merge and close this issue as Won't Fix
            Show
            krzys Krzysztof Findeisen added a comment - - edited Spencer Nelson assures me that the change will work once .gitattributes is merged, so I propose the following sequence for this ticket, derived from how Kian-Tat Lim told me to handle similarly "meta" updates to Jenkins pipelines: Review the .gitattributes update for all four packages, per normal procedure. Merge one of the packages Create and upload a new u/kfindeisen/ DM-30199 branch in that package that updates the repository (this branch should appear in the Jira branch tracker), and use it to test the change If all is well, merge the other packages; if not, revert the one merge and close this issue as Won't Fix
            Hide
            sullivan Ian Sullivan added a comment -

            The proposed changes look straightforward.

            Show
            sullivan Ian Sullivan added a comment - The proposed changes look straightforward.
            Hide
            krzys Krzysztof Findeisen added a comment -

            It still treats export.yaml the same in diffs and pull requests: https://github.com/lsst/ap_verify_ci_hits2015/compare/u/kfindeisen/DM-30199.

            Show
            krzys Krzysztof Findeisen added a comment - It still treats export.yaml the same in diffs and pull requests: https://github.com/lsst/ap_verify_ci_hits2015/compare/u/kfindeisen/DM-30199 .
            Hide
            krzys Krzysztof Findeisen added a comment -

            It turns out I misunderstood what this feature did; an example of the "generated file" filter in action can be found on this Twitch PR. While handy for files that have small diffs, it's basically redundant with how GitHub already displays changes to export.yaml, in that they're hidden but you can explicitly ask for them.

            So I'm closing this as Won't Fix and reverting my change to ap_verify_ci_hits2015.

            Show
            krzys Krzysztof Findeisen added a comment - It turns out I misunderstood what this feature did; an example of the "generated file" filter in action can be found on this Twitch PR . While handy for files that have small diffs, it's basically redundant with how GitHub already displays changes to export.yaml , in that they're hidden but you can explicitly ask for them. So I'm closing this as Won't Fix and reverting my change to ap_verify_ci_hits2015 .

              People

              Assignee:
              krzys Krzysztof Findeisen
              Reporter:
              krzys Krzysztof Findeisen
              Reviewers:
              Ian Sullivan
              Watchers:
              Ian Sullivan, Krzysztof Findeisen, Meredith Rawls
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.