Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change aritfact link file name #35504

Conversation

stephane-airbyte
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Feb 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Feb 22, 2024 5:40am

Copy link
Contributor Author

stephane-airbyte commented Feb 21, 2024

@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch from 5a1fa07 to be0b10a Compare February 21, 2024 19:11
@stephane-airbyte stephane-airbyte force-pushed the augustin/02-21-airbyte-ci_rename_StepResult.output_artifact_to_StepResult.output branch from e8d0597 to 64b93e4 Compare February 21, 2024 21:02
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch 2 times, most recently from 4d46fa1 to d5b2638 Compare February 21, 2024 22:44
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch 5 times, most recently from 51a3f8b to 5505b42 Compare February 22, 2024 00:05
@stephane-airbyte stephane-airbyte force-pushed the augustin/02-21-airbyte-ci_rename_StepResult.output_artifact_to_StepResult.output branch from 64b93e4 to a83baa1 Compare February 22, 2024 00:29
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch from 5505b42 to 10a4d5a Compare February 22, 2024 00:29
@stephane-airbyte stephane-airbyte force-pushed the augustin/02-21-airbyte-ci_rename_StepResult.output_artifact_to_StepResult.output branch from a83baa1 to 3c6b12d Compare February 22, 2024 00:34
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch 3 times, most recently from 82b4f40 to 2b4f711 Compare February 22, 2024 01:22
@stephane-airbyte stephane-airbyte force-pushed the augustin/02-21-airbyte-ci_rename_StepResult.output_artifact_to_StepResult.output branch from 3c6b12d to 2a47e7d Compare February 22, 2024 04:36
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch 2 times, most recently from db04e03 to ae62e61 Compare February 22, 2024 05:36
@stephane-airbyte stephane-airbyte force-pushed the stephane/02-21-change_link_file_name branch from ae62e61 to f85606d Compare February 22, 2024 05:38
@@ -171,7 +171,7 @@ function copyToClipBoard(htmlElement) {
<h3>Artifacts</h3>
<ul>
{% for artifact in step_result_to_artifact_links[step_result.step.title] %}
<li><a href="{{ artifact.url }}">{{ artifact.name }}</a></li>
<li><a href="{{ artifact.url }}" download>{{ artifact.name }}</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li><a href="{{ artifact.url }}" download>{{ artifact.name }}</a></li>
<li><a href="{{ artifact.url }}">Download {{ artifact.name }}</a></li>

if test_results_dir_name not in await gradle_container.directory(f"{self.context.connector.code_directory}/build").entries():
self.context.logger.warn(f"No {test_results_dir_name} found directory in the build folder")
test_results_dir_name_in_container = "test-results"
test_results_dir_name_in_zip = f"test-results-{datetime.fromtimestamp(cast(float, self.context.pipeline_start_timestamp)).isoformat()}-{self.context.git_branch}-{self.gradle_task_name}".replace(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this can be declared after the next ifstatement as its only used if the test_results_dir_name_in_containerexists.

@@ -29,7 +29,9 @@ async def save_to_local_path(self, path: Path) -> Path:
raise Exception(f"Failed to save artifact {self.name} to local path {path}")

async def upload_to_gcs(self, dagger_client: dagger.Client, bucket: str, key: str, gcs_credentials: dagger.Secret) -> str:
gcs_cp_flags = None if self.content_type is None else [f"--content-type={self.content_type}"]
gcs_cp_flags = [f"--content-disposition=filename=\"{self.name}\""]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share why this addition is required?

Base automatically changed from augustin/02-21-airbyte-ci_rename_StepResult.output_artifact_to_StepResult.output to stephane/02-13-make_airbyte-ci_pass_a_parameter_to_the_java_connectors_to_the_location_of_the_logs February 22, 2024 15:16
@stephane-airbyte stephane-airbyte merged commit f85606d into stephane/02-13-make_airbyte-ci_pass_a_parameter_to_the_java_connectors_to_the_location_of_the_logs Feb 22, 2024
24 of 25 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/02-21-change_link_file_name branch February 22, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants