Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/robin/simplify-ast-tests'
Browse files Browse the repository at this point in the history
* origin/topic/robin/simplify-ast-tests:
  Remove `ast-stats` output from tests baselines.
  • Loading branch information
rsmmr committed Sep 26, 2024
2 parents 15db391 + ff21535 commit 7347a2b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 349 deletions.
9 changes: 9 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
1.12.0-dev.111 | 2024-09-26 20:00:42 +0200

* Remove `ast-stats` output from tests baselines. (Robin Sommer, Corelight)

These are too noisy as they update with every AST change. Originally I
included `ast-stats` into some test baselines to ensure the new AST
infrastructure isn't doing weird stuff, but seems that's working out
ok.

1.12.0-dev.109 | 2024-09-26 17:29:17 +0200

* Fix parsing ambiguity with properties. (Robin Sommer, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.0-dev.109
1.12.0-dev.111
79 changes: 0 additions & 79 deletions tests/Baseline/hilti.ast.basic-module/debug.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,73 +8,19 @@
[debug/compiler] [HILTI] building scopes
[debug/compiler] [HILTI] resolving AST
[debug/compiler] -> modified
[debug/ast-stats] garbage collected 537 nodes in 12 rounds, 5351 left retained
[debug/compiler] processing ASTs, round 2
[debug/compiler] [HILTI] building scopes
[debug/compiler] [HILTI] resolving AST
[debug/compiler] -> modified
[debug/ast-stats] garbage collected 223 nodes in 11 rounds, 5607 left retained
[debug/compiler] processing ASTs, round 3
[debug/compiler] [HILTI] building scopes
[debug/compiler] [HILTI] resolving AST
[debug/ast-stats] garbage collected 29 nodes in 2 rounds, 5635 left retained
[debug/ast-stats] # [HILTI] AST statistics:
[debug/ast-stats] - # AST rounds 3
[debug/ast-stats] - max tree depth: 16
[debug/ast-stats] - # context declarations: 23
[debug/ast-stats] - # context types: 16
[debug/ast-stats] - # context modules: 2
[debug/ast-stats] - # nodes reachable in AST: 705
[debug/ast-stats] - # nodes live: 5635
[debug/ast-stats] - # nodes retained: 5635
[debug/ast-stats] - # nodes live > 1%:
[debug/ast-stats] - AttributeSet: 64
[debug/ast-stats] - QualifiedType: 1971
[debug/ast-stats] - expression::Ctor: 69
[debug/ast-stats] - type::Bool: 141
[debug/ast-stats] - type::Bytes: 80
[debug/ast-stats] - type::Member: 121
[debug/ast-stats] - type::OperandList: 504
[debug/ast-stats] - type::Real: 60
[debug/ast-stats] - type::SignedInteger: 78
[debug/ast-stats] - type::String: 80
[debug/ast-stats] - type::Unknown: 118
[debug/ast-stats] - type::UnsignedInteger: 338
[debug/ast-stats] - type::bytes::Iterator: 108
[debug/ast-stats] - type::operand_list::Operand: 911
[debug/ast-stats] - type::stream::Iterator: 81
[debug/compiler] [HILTI] validating (post)
[debug/compiler] performing global transformations
[debug/compiler] resolving units with plugin HILTI
[debug/compiler] processing ASTs, round 1
[debug/compiler] [HILTI] building scopes
[debug/compiler] [HILTI] resolving AST
[debug/ast-stats] garbage collected 29 nodes in 2 rounds, 5635 left retained
[debug/ast-stats] # [HILTI] AST statistics:
[debug/ast-stats] - # AST rounds 1
[debug/ast-stats] - max tree depth: 16
[debug/ast-stats] - # context declarations: 23
[debug/ast-stats] - # context types: 16
[debug/ast-stats] - # context modules: 2
[debug/ast-stats] - # nodes reachable in AST: 694
[debug/ast-stats] - # nodes live: 5635
[debug/ast-stats] - # nodes retained: 5635
[debug/ast-stats] - # nodes live > 1%:
[debug/ast-stats] - AttributeSet: 64
[debug/ast-stats] - QualifiedType: 1971
[debug/ast-stats] - expression::Ctor: 69
[debug/ast-stats] - type::Bool: 141
[debug/ast-stats] - type::Bytes: 80
[debug/ast-stats] - type::Member: 121
[debug/ast-stats] - type::OperandList: 504
[debug/ast-stats] - type::Real: 60
[debug/ast-stats] - type::SignedInteger: 78
[debug/ast-stats] - type::String: 80
[debug/ast-stats] - type::Unknown: 118
[debug/ast-stats] - type::UnsignedInteger: 338
[debug/ast-stats] - type::bytes::Iterator: 108
[debug/ast-stats] - type::operand_list::Operand: 911
[debug/ast-stats] - type::stream::Iterator: 81
[debug/compiler] [HILTI] validating (post)
[debug/compiler] finalized AST
[debug/ast-final] # [HILTI] Final AST
Expand Down Expand Up @@ -1013,32 +959,7 @@
[debug/ast-final] [T13] hilti::Exception [type::Exception] (hilti.hlt:46:25-46:33)
[debug/ast-final] [T14] hilti::SystemException [type::Exception] (hilti.hlt:49:31-49:53)
[debug/ast-final] [T15] hilti::RecoverableFailure [type::Exception] (hilti.hlt:56:34-56:56)
[debug/ast-stats] # [HILTI] AST statistics:
[debug/ast-stats] - max tree depth: 16
[debug/ast-stats] - # context declarations: 23
[debug/ast-stats] - # context types: 16
[debug/ast-stats] - # context modules: 2
[debug/ast-stats] - # nodes reachable in AST: 694
[debug/ast-stats] - # nodes live: 5635
[debug/ast-stats] - # nodes retained: 5635
[debug/ast-stats] - # nodes live > 1%:
[debug/ast-stats] - AttributeSet: 64
[debug/ast-stats] - QualifiedType: 1971
[debug/ast-stats] - expression::Ctor: 69
[debug/ast-stats] - type::Bool: 141
[debug/ast-stats] - type::Bytes: 80
[debug/ast-stats] - type::Member: 121
[debug/ast-stats] - type::OperandList: 504
[debug/ast-stats] - type::Real: 60
[debug/ast-stats] - type::SignedInteger: 78
[debug/ast-stats] - type::String: 80
[debug/ast-stats] - type::Unknown: 118
[debug/ast-stats] - type::UnsignedInteger: 338
[debug/ast-stats] - type::bytes::Iterator: 108
[debug/ast-stats] - type::operand_list::Operand: 911
[debug/ast-stats] - type::stream::Iterator: 81
[debug/compiler] computing AST dependencies
[debug/compiler] codegen module Foo to C++
[debug/compiler] generating C++ for module Foo
[debug/compiler] finalizing module Foo
[debug/ast-stats] garbage collected 5636 nodes in 17 rounds, 0 left retained
134 changes: 0 additions & 134 deletions tests/Baseline/spicy.types.unit.hooks-across-imports/.stderr

This file was deleted.

130 changes: 0 additions & 130 deletions tests/Baseline/spicy.types.unit.sub-unit/.stderr

This file was deleted.

2 changes: 1 addition & 1 deletion tests/hilti/ast/basic-module.hlt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# @TEST-GROUP: no-jit
# @TEST-EXEC: ${HILTIC} -c -D compiler,ast-final,ast-stats %INPUT >output 2>debug.log
# @TEST-EXEC: ${HILTIC} -c -D compiler,ast-final %INPUT >output 2>debug.log
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: btest-diff debug.log

Expand Down
Loading

0 comments on commit 7347a2b

Please sign in to comment.