<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:57:35 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[PIPE2D-775] generateCommands should detect bad formats in YAML file</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-775</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Some of the elements of the YAML file can be a bit tricky to get right, especially the &lt;tt&gt;bootstrap&lt;/tt&gt; and &lt;tt&gt;fiberProfiles&lt;/tt&gt; blocks, with their &lt;tt&gt;group&lt;/tt&gt; syntax, e.g.:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    bootstrap:
      group:
        -
          flatId: visit=45742
          arcId: visit=45744
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In such cases, omitting the extra &lt;tt&gt;group&lt;/tt&gt; structure results in &lt;tt&gt;generateCommands&lt;/tt&gt; silently skipping the operation.&lt;/p&gt;

&lt;p&gt;Please produce errors when the YAML file format will result in incorrect operation, or YAML elements are misnamed or in the wrong place.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15454">PIPE2D-775</key>
            <summary>generateCommands should detect bad formats in YAML file</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="sogo.mineo">sogo.mineo</assignee>
                                    <reporter username="price">price</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Mar 2021 21:57:25 +0000</created>
                <updated>Thu, 18 Mar 2021 00:06:11 +0000</updated>
                            <resolved>Thu, 18 Mar 2021 00:06:11 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="18844" author="sogo.mineo" created="Fri, 12 Mar 2021 02:24:33 +0000"  >&lt;p&gt;Because lsst stack seems to include no library to deal with json schema or the like, and I would have yet to learn such a standard if it were to be available, I am writing check codes directly.&lt;/p&gt;</comment>
                            <comment id="18863" author="sogo.mineo" created="Tue, 16 Mar 2021 08:02:28 +0000"  >&lt;p&gt;I have made changes. Could you review them?&lt;/p&gt;</comment>
                            <comment id="18872" author="price" created="Tue, 16 Mar 2021 21:10:55 +0000"  >&lt;p&gt;This looks great! I tried it with the following deliberately misformed YAML file:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
# To run generateCommands.py with &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; spec file,
# you have to set environment variable DATADIR,
# in which initial detectorMap files reside.

#
# initial detectorMap
#
# The files are to be found in dirName, taken to be relative to --dataDir &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;
# not an absolute path
#
init:
  dirName: &lt;span class=&quot;code-quote&quot;&gt;&quot;$DATADIR&quot;&lt;/span&gt;
  arms: [b1, r1, n1, m1]
  detectorMapFmt: &lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap-sim-{arm}.fits&quot;&lt;/span&gt;
#  foobar: 12345  # XXX bad name

#
# Blocks of data which are used together to update the calibrations
#
calibBlock:
  -
    name: calibs_for_brn
    bias:
      id: [&lt;span class=&quot;code-quote&quot;&gt;&quot;field=BIAS&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;arm=b^r^n&quot;&lt;/span&gt;]
#      confg: &lt;span class=&quot;code-quote&quot;&gt;&quot;foo=bar&quot;&lt;/span&gt;  # XXX misspelling
    dark:
      id: [&lt;span class=&quot;code-quote&quot;&gt;&quot;field=DARK&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;arm=b^r^n&quot;&lt;/span&gt;]
#      confgfile: foobar.py  # XXX misspelling
    flat:
      id: [&lt;span class=&quot;code-quote&quot;&gt;&quot;field=FLAT&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;arm=b^r^n&quot;&lt;/span&gt;]
#      whatever: asdf  # XXX bad name
#    bootstrap:
#      # XXX missing &lt;span class=&quot;code-quote&quot;&gt;&apos;group&apos;&lt;/span&gt;
#      arcId: &lt;span class=&quot;code-quote&quot;&gt;&quot;visit=39&quot;&lt;/span&gt;
#      flatId: &lt;span class=&quot;code-quote&quot;&gt;&quot;visit=20&quot;&lt;/span&gt;
    fiberProfiles:
      # XXX not a list
      group:
        id: &lt;span class=&quot;code-quote&quot;&gt;&quot;visit=35&quot;&lt;/span&gt;
  -
    name: calibs_for_m
    fiberProfiles:
      # XXX missing group
      -
        id: [&lt;span class=&quot;code-quote&quot;&gt;&quot;visit=36&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;arm=m&quot;&lt;/span&gt;]
      -
        id: [&lt;span class=&quot;code-quote&quot;&gt;&quot;visit=38&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;arm=m&quot;&lt;/span&gt;]

#
# Blocks of science pipelines
#
scienceBlock:
  # XXX not a list
  name: pipeline_on_brn
  id: &lt;span class=&quot;code-quote&quot;&gt;&quot;visit=47^48^49^53^54^57&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This produces an obscure error message: &lt;tt&gt;ValueError: dictionary update sequence element #0 has length 1; 2 is required [context: CalibBlock:calibs_for_brn]&lt;/tt&gt;. Can you add something to clarify that, please?&lt;/p&gt;</comment>
                            <comment id="18880" author="sogo.mineo" created="Wed, 17 Mar 2021 08:04:37 +0000"  >&lt;p&gt;I force-pushed a change. &lt;tt&gt;generateCommands.py&lt;/tt&gt; now says&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
TypeError: illegal type (must be `list`): `dict` (value: &lt;span class=&quot;code-quote&quot;&gt;&apos;{&apos;&lt;/span&gt;id&lt;span class=&quot;code-quote&quot;&gt;&apos;: &apos;&lt;/span&gt;visit=35&lt;span class=&quot;code-quote&quot;&gt;&apos;}&apos;&lt;/span&gt;) [context: CalibBlock:calibs_for_brn]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;for the spec file above. I would like to ask whether this change is good or not before merging the branch to master, because the change is a little large.&lt;/p&gt;</comment>
                            <comment id="18904" author="price" created="Wed, 17 Mar 2021 18:16:12 +0000"  >&lt;p&gt;That&apos;s wonderful, Mineo-san, thank you!&lt;/p&gt;</comment>
                            <comment id="18918" author="sogo.mineo" created="Thu, 18 Mar 2021 00:06:11 +0000"  >&lt;p&gt;Thanks for review. Merged to master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzs47y:zzzzzzr</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>price</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="102">2DDRP-2021 A3</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>