チケット #43938

generate_packets.py: Make internal parameters argparse-controllable

登録: 2022-02-20 11:42 最終更新: 2022-03-01 19:58

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
1

詳細

Follow-up to #43931. Part of #43927.

There are currently a number of internal parameters (generate_stats, generate_logs/use_log_macro, fold_bool_into_header and lazy_overwrite) that are set in the code. They should be set depending on optional command line arguments instead.

チケットの履歴 (9 件中 3 件表示)

2022-02-20 11:42 更新者: alienvalkyrie
  • 新しいチケット "generate_packets.py: Make internal parameters argparse-controllable" が作成されました
2022-02-25 09:21 更新者: alienvalkyrie
  • 担当者(未割り当て) から alienvalkyrie に更新されました
コメント

While testing this, I noticed that the generate_stats option doesn't work ~> #43979.

Given that the scope of this ticket is making the options command-line-controllable, not ensuring they work, I'll keep the option in anyway.

2022-02-25 09:55 更新者: alienvalkyrie
  • 解決法なし から 受領 に更新されました
コメント

As mentioned above; this patch exposes options with no regard for whether they actually work – the -s, --gen-stats option does not (#43979); the -B, --no-fold-bool option successfully generates code, but I haven't (yet) tested whether that code works (and if it doesn't, that has no bearing on this ticket). The other options (verbose, logs, lazy/force) are tested.

2022-02-25 11:45 更新者: cazfi
コメント

Reply To alienvalkyrie

As mentioned above; this patch exposes options with no regard for whether they actually work – the -s, --gen-stats option does not (#43979)

This patch makes the situation worse in that you expose the crash, and make the code in question more officially supported. Before it was not crashing unless you modified the code. Resolve #43979 first.

2022-02-25 20:41 更新者: alienvalkyrie
コメント

Reply To cazfi

and make the code in question more officially supported

I'm not sure I agree with that part; even before, it had configuration characterstics, and there were other parts of the code (comments in packets[_json].c) that explicitly referred to changing it.

Either way, this is likely gonna delay this patch for quite a while, 'cause I'll have to figure out how the stats generation was supposed to work (which might mean digging through mailing list archives for a version of the patch when it did).

2022-02-25 20:52 更新者: cazfi
コメント

Reply To alienvalkyrie

Either way, this is likely gonna delay this patch for quite a while, 'cause I'll have to figure out how the stats generation was supposed to work (which might mean digging through mailing list archives for a version of the patch when it did).

Given that apparently nobody has ever even wanted to use it, I wouldn't necessarily be against resolving the issue by just dropping the feature. Replacing it with a completely new stats generation implementation would definitely be ok. Can also go with the combination of these -> drop now, but open a ticket for a future implementation.

2022-02-27 00:04 更新者: alienvalkyrie
コメント

Turns out the fix for #43979 was rather simple, so I'm currently keeping it in. It also doesn't require any change to this patch, so I'll merge it as-is along with that.

2022-03-01 19:58 更新者: alienvalkyrie
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする