Skip to content

Conversation

@ihsandemir
Copy link
Collaborator

Fail the generator if any type mapping in any language is missing. Do not suppress and continue.

@hz-devops-test
Copy link

The job Client-Protocol-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
Traceback (most recent call last):
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 262, in generate_codecs
contains_serialized_data_in_request=contains_serialized_data_in_request
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/codec-template.cs.j2", line 282, in top-level template code
public static ClientMessage Encode{{(event.name|capital)}}Event({% for param in event.params %}{{ lang_types_encode(param.type) }} {{escape_keyword(param.name)}}{% if not loop.last %}, {% endif %}{% endfor %})
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 52, in cs_types_encode
return cs_types(key, _cs_types_encode)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 47, in cs_types
raise NotImplementedError("Missing (N/A) type mapping for '" + key + "'")
NotImplementedError: Missing (N/A) type mapping for 'MigrationState'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./generator.py", line 168, in
generate_codecs(protocol_defs, custom_protocol_defs, codec_template, codec_output_dir, lang, env)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 269, in generate_codecs
e))
NotImplementedError: [Client.addMigrationListener] codec contains missing type mapping for cs language. Missing (N/A) type mapping for 'MigrationState'

ihsandemir and others added 2 commits October 22, 2025 11:39
Co-authored-by: Jack Green <[email protected]>
Co-authored-by: Jack Green <[email protected]>
@hz-devops-test
Copy link

The job Client-Protocol-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
Traceback (most recent call last):
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 262, in generate_codecs
contains_serialized_data_in_request=contains_serialized_data_in_request
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/codec-template.cs.j2", line 282, in top-level template code
public static ClientMessage Encode{{(event.name|capital)}}Event({% for param in event.params %}{{ lang_types_encode(param.type) }} {{escape_keyword(param.name)}}{% if not loop.last %}, {% endif %}{% endfor %})
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 52, in cs_types_encode
return cs_types(key, _cs_types_encode)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 47, in cs_types
raise NotImplementedError("Missing (N/A) type mapping for '" + key + "'")
NotImplementedError: Missing (N/A) type mapping for 'MigrationState'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./generator.py", line 168, in
generate_codecs(protocol_defs, custom_protocol_defs, codec_template, codec_output_dir, lang, env)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 267, in generate_codecs
f"[{service_name}.{method_name}] codec contains missing type mapping for {lang.value} language. {e}")
NotImplementedError: [Client.addMigrationListener] codec contains missing type mapping for cs language. Missing (N/A) type mapping for 'MigrationState'

@hz-devops-test
Copy link

The job Client-Protocol-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
Traceback (most recent call last):
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 262, in generate_codecs
contains_serialized_data_in_request=contains_serialized_data_in_request
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/codec-template.cs.j2", line 282, in top-level template code
public static ClientMessage Encode{{(event.name|capital)}}Event({% for param in event.params %}{{ lang_types_encode(param.type) }} {{escape_keyword(param.name)}}{% if not loop.last %}, {% endif %}{% endfor %})
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 52, in cs_types_encode
return cs_types(key, _cs_types_encode)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 47, in cs_types
raise NotImplementedError("Missing (N/A) type mapping for '" + key + "'")
NotImplementedError: Missing (N/A) type mapping for 'MigrationState'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./generator.py", line 168, in
generate_codecs(protocol_defs, custom_protocol_defs, codec_template, codec_output_dir, lang, env)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 267, in generate_codecs
f"[{service_name}.{method_name}] codec contains missing type mapping for {lang.value} language. {e}")
NotImplementedError: [Client.addMigrationListener] codec contains missing type mapping for cs language. Missing (N/A) type mapping for 'MigrationState'

@hz-devops-test
Copy link

The job Client-Protocol-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
Traceback (most recent call last):
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 262, in generate_codecs
contains_serialized_data_in_request=contains_serialized_data_in_request
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/home/jenkins/.local/lib/python3.7/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/codec-template.cs.j2", line 282, in top-level template code
public static ClientMessage Encode{{(event.name|capital)}}Event({% for param in event.params %}{{ lang_types_encode(param.type) }} {{escape_keyword(param.name)}}{% if not loop.last %}, {% endif %}{% endfor %})
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 52, in cs_types_encode
return cs_types(key, _cs_types_encode)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/cs/__init__.py", line 47, in cs_types
raise NotImplementedError("Missing (N/A) type mapping for '" + key + "'")
NotImplementedError: Missing (N/A) type mapping for 'MigrationState'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./generator.py", line 168, in
generate_codecs(protocol_defs, custom_protocol_defs, codec_template, codec_output_dir, lang, env)
File "/home/jenkins/jenkins_slave/workspace/Client-Protocol-pr-builder/util.py", line 267, in generate_codecs
f"[{service_name}.{method_name}] codec contains missing type mapping for {lang.value} language. {e}")
NotImplementedError: [Client.addMigrationListener] codec contains missing type mapping for cs language. Missing (N/A) type mapping for 'MigrationState'

@ihsandemir ihsandemir changed the title Fail the generator if any type mapping in any language is missing [CTT-713] Fail the generator if any type mapping in any language is missing Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants