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

Fix destination-s3 build #27786

Merged
merged 5 commits into from
Jun 28, 2023
Merged

Fix destination-s3 build #27786

merged 5 commits into from
Jun 28, 2023

Conversation

evantahler
Copy link
Contributor

@evantahler evantahler commented Jun 27, 2023

Closes #26521

Reference for failing build https://github.com/airbytehq/airbyte/actions/runs/5387253975

Locally, airbyte-ci connectors --name=destination-s3 build does work fine...

╭─────────────────────────────────────────────────────────────────────────────────────────────────────── DESTINATION-S3 - BUILD RESULTS ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                        Steps results                                                                                                                                                                                         │
│ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓                                                                                                                                                 │
│ ┃ Step                                                       ┃ Result     ┃ Finished after ┃                                                                                                                                                 │
│ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩                                                                                                                                                 │
│ │ Build destination-s3 docker image for platform linux/amd64 │ Successful │ 79s            │                                                                                                                                                 │
│ │ Build destination-s3 docker image for platform linux/arm64 │ Successful │ 23s            │                                                                                                                                                 │
│ │ Load airbyte/destination-s3:dev to the local docker host.  │ Successful │ 0s             │                                                                                                                                                 │
│ └────────────────────────────────────────────────────────────┴────────────┴────────────────┘                                                                                                                                                 │
╰───────────────────────────────────────────────────────────────────────────────────────── ⏲️  Total pipeline duration for destination-s3: 412 seconds ─────────────────────────────────────────────────────────────────────────────────────────╯
[14:52:03] INFO     Build: {"connector_technical_name": "destination-s3", "connector_version": "0.5.0", "run_timestamp": "2023-06-27T21:52:03.101838", "run_duration": 412.072144, "success": true, "failed_steps": [],          contexts.py:401
                    "successful_steps": ["BuildConnectorImage", "BuildConnectorImage", "LoadContainerToLocalDockerHost"], "skipped_steps": [], "gha_workflow_run_url": null, "pipeline_start_timestamp": 1687927511,
                    "pipeline_end_timestamp": 1687927923, "pipeline_duration": 412, "git_branch": "evan/destination-s3-build", "git_revision": "fd34fe3e2b3c037bd686e9a270dc91e881aeb826", "ci_context": "manual"}

@evantahler evantahler marked this pull request as ready for review June 27, 2023 22:11
@evantahler evantahler requested a review from a team as a code owner June 27, 2023 22:11
@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Jun 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 27, 2023

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan and you've followed all steps in the Breaking Changes Checklist
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • The connector tests are passing in CI
  • You've updated the connector's metadata.yaml file (new!)
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@evantahler evantahler changed the title Fix destination-s3 build. Fix destination-s3 build Jun 27, 2023
Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

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

lgtm pending pr checks I guess? augustin's comment said the sdk install java 8.0.342-librca failed, so if that's not happening then we should be good to go 🤷

@octavia-squidington-iii
Copy link
Collaborator

destination-s3 test report (commit 8e0f8874ec) - ✅

⏲️ Total pipeline duration: 908 seconds

Step Result
Validate airbyte-integrations/connectors/destination-s3/metadata.yaml
Connector version semver check
Connector version increment check
QA checks
Build connector tar
Build destination-s3 docker image for platform linux/x86_64
Unit tests
Integration tests

🔗 View the logs here

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-s3 test

@octavia-squidington-iii
Copy link
Collaborator

destination-s3 test report (commit ef6b83828e) - ✅

⏲️ Total pipeline duration: 826 seconds

Step Result
Validate airbyte-integrations/connectors/destination-s3/metadata.yaml
Connector version semver check
Connector version increment check
QA checks
Build connector tar
Build destination-s3 docker image for platform linux/x86_64
Unit tests
Integration tests

🔗 View the logs here

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-s3 test

@@ -59,7 +59,7 @@ def buildAirbyteDocker(String customConnector) {
}

def baseCommand = ['docker', 'buildx', 'build', '--load', '--platform', arch, '-f', getDockerfile(customConnector), '-t', getImageNameWithTag(customConnector), '.']
println("Building normalization container: " + baseCommand.join(" "))
// println("Building normalization container: " + baseCommand.join(" "))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unrelated to this PR, but I was annoyed. I added this log statement in #26677, but I didn't realize it would log on every gradle run, even those that have nothing to do with normalization 😓

@octavia-squidington-iii
Copy link
Collaborator

destination-s3 test report (commit 5ea95c0ae0) - ✅

⏲️ Total pipeline duration: 866 seconds

Step Result
Validate airbyte-integrations/connectors/destination-s3/metadata.yaml
Connector version semver check
Connector version increment check
QA checks
Build connector tar
Build destination-s3 docker image for platform linux/x86_64
Unit tests
Integration tests

🔗 View the logs here

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-s3 test

@evantahler
Copy link
Contributor Author

cc @alafanechere
I'm going to merge this PR, as we are getting green test reports for the connector (yay!). However, there's something odd with the test reporting:

  • The green test reports link to the latest commmits
  • Connectors tests / Connectors CI (pull_request) seem to be waiting on a runner for the test
  • The event timing is strange in the workflow report. It says it ran for 1h 34min, but the action within only took 15min.

Screenshots from right before my merge:

Screenshot 2023-06-27 at 5 11 30 PM Screenshot 2023-06-27 at 5 11 33 PM

@evantahler evantahler merged commit 4fb1f98 into master Jun 28, 2023
17 checks passed
@evantahler evantahler deleted the evan/destination-s3-build branch June 28, 2023 00:15
@octavia-squidington-iii
Copy link
Collaborator

destination-s3 test report (commit dab48992ef) - ❌

⏲️ Total pipeline duration: 912 seconds

Step Result
Validate airbyte-integrations/connectors/destination-s3/metadata.yaml
Connector version semver check
Connector version increment check
QA checks
Build connector tar
Build destination-s3 docker image for platform linux/x86_64
Unit tests
Integration tests

🔗 View the logs here

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-s3 test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/destination/s3 normalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destination S3: Fix docker build
3 participants