Skip to content

Commit 9d34773

Browse files
committed
Merge commit 'cbf23d0df5f077b3029c18b4c57e6c72a69f969f' into beta
2 parents 5c68a90 + cbf23d0 commit 9d34773

File tree

707 files changed

+48810
-14451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

707 files changed

+48810
-14451
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ experimental_i:
7979
script:
8080
- export PATH=/opt/homebrew/opt/ruby/bin:$PATH
8181
- export PATH=`gem environment gemdir`/bin:$PATH
82-
- python3 -u build-system/Make/Make.py remote-build --darwinContainers="$DARWIN_CONTAINERS" --darwinContainersHost="$DARWIN_CONTAINERS_HOST" --cacheHost="$TELEGRAM_BAZEL_CACHE_HOST" --configurationPath="build-system/appstore-configuration.json" --gitCodesigningRepository="$TELEGRAM_GIT_CODESIGNING_REPOSITORY" --gitCodesigningType=adhoc --configuration=release_arm64
82+
- python3 -u build-system/Make/Make.py remote-build --darwinContainers="$DARWIN_CONTAINERS" --darwinContainersHost="$DARWIN_CONTAINERS_HOST" --cacheHost="$TELEGRAM_BAZEL_CACHE_HOST" --configurationPath="build-system/appcenter-configuration.json" --gitCodesigningRepository="$TELEGRAM_GIT_CODESIGNING_REPOSITORY" --gitCodesigningType=adhoc --configuration=release_arm64
83+
- python3 -u build-system/Make/DeployToFirebase.py --configuration="$TELEGRAM_PRIVATE_DATA_PATH/firebase-configurations/firebase-internal.json" --ipa="build/artifacts/Telegram.ipa" --dsyms="build/artifacts/Telegram.DSYMs.zip"
8384
environment:
8485
name: experimental
8586
artifacts:

Random.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb0ad702db3f1d1c0afe18fdddf9fd4ba4562edd550a0b414b087d26caac1bda
1+
c796824aa8245ce7309426caa3c4816024abd71d21f3805988aa953a4e826169

Telegram/BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,12 @@ official_communication_notifications_fragment = """
526526
"""
527527
communication_notifications_fragment = official_communication_notifications_fragment if telegram_bundle_id in official_bundle_ids else ""
528528

529+
official_notification_filtering_fragment = """
530+
<key>com.apple.developer.usernotifications.filtering</key>
531+
<true/>
532+
"""
533+
notification_filtering_fragment = official_notification_filtering_fragment if telegram_bundle_id == "ph.telegra.Telegraph" else ""
534+
529535
store_signin_fragment = """
530536
<key>com.apple.developer.applesignin</key>
531537
<array>
@@ -547,6 +553,7 @@ plist_fragment(
547553
unrestricted_voip_fragment,
548554
carplay_fragment,
549555
communication_notifications_fragment,
556+
notification_filtering_fragment,
550557
signin_fragment,
551558
])
552559
)

Telegram/Telegram-iOS/en.lproj/Localizable.strings

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14065,6 +14065,7 @@ Sorry for the inconvenience.";
1406514065
"Privacy.Gifts.AcceptedTypes.Unlimited" = "Unlimited";
1406614066
"Privacy.Gifts.AcceptedTypes.Limited" = "Limited-Edition";
1406714067
"Privacy.Gifts.AcceptedTypes.Unique" = "Unique";
14068+
"Privacy.Gifts.AcceptedTypes.Channel" = "From Channels";
1406814069
"Privacy.Gifts.AcceptedTypes.Premium" = "Premium Subscriptions";
1406914070
"Privacy.Gifts.AcceptedTypes.Info" = "Choose the types of gifts that you allow others to send you.";
1407014071

@@ -15156,3 +15157,269 @@ Error: %8$@";
1515615157
"Chat.NewThreadInfo.Text" = "Type any message to\ncreate a new thread.";
1515715158
"Chat.InlineTopicMenu.NewForumThreadTab" = "New Chat";
1515815159
"Chat.GenericForuThreadStatus" = "thread";
15160+
15161+
"Privacy.SavedMusic" = "Saved Music";
15162+
"Privacy.SavedMusic.WhoCanSeeMyMusic" = "WHO CAN SEE MY SAVED MUSIC";
15163+
"Privacy.SavedMusic.CustomHelp" = "You can restrict who can see your saved music with granular precision.";
15164+
"Privacy.SavedMusic.AlwaysShareWith.Title" = "Always Share With";
15165+
"Privacy.SavedMusic.NeverShareWith.Title" = "Never Share With";
15166+
15167+
"ScheduledMessages.Reminder.Delete" = "Delete Reminder";
15168+
"ScheduledMessages.Reminder.DeleteMany" = "Delete Reminders";
15169+
15170+
"Gift.Setup.PlaceBid" = "Place a Bid";
15171+
"Gift.Setup.AuctionInfo" = "%@ are dropped to the top %@ by bid amount. [Learn more >]()";
15172+
"Gift.Setup.AuctionInfo.Gifts_1" = "%@ gift";
15173+
"Gift.Setup.AuctionInfo.Gifts_any" = "%@ gifts";
15174+
"Gift.Setup.AuctionInfo.Bidders_1" = "%@ bidder";
15175+
"Gift.Setup.AuctionInfo.Bidders_any" = "%@ bidders";
15176+
15177+
"PrivacySettings.LoginEmailSetupInfo" = "Setup your email address for Telegram login codes.";
15178+
15179+
"LoginEmail.Title" = "Add Email";
15180+
"LoginEmail.Description" = "Please add your email address to keep access to your account.";
15181+
15182+
"LoginEmail.Success.Title" = "Email added";
15183+
"LoginEmail.Success.Text" = "Your account is now protected!";
15184+
15185+
"Notification.GiftAuction.Acquired" = "You've successfully bought a gift in the auction for %@.";
15186+
15187+
"Gift.Auction.Auction" = "auction";
15188+
"Gift.Auction.Description" = "Top %@ bidders will get **%@** gifts this round. [Learn More >]()";
15189+
"Gift.Auction.Ended" = "Auction ended";
15190+
"Gift.Auction.FirstSale" = "First Sale";
15191+
"Gift.Auction.LastSale" = "Last Sale";
15192+
"Gift.Auction.Started" = "Started";
15193+
"Gift.Auction.Ends" = "Ends";
15194+
"Gift.Auction.AveragePrice" = "Average Price";
15195+
"Gift.Auction.CurrentRound" = "Current Round";
15196+
"Gift.Auction.Round" = "%@ of %@";
15197+
"Gift.Auction.Availability" = "Availability";
15198+
"Gift.Auction.AvailabilityOf" = "%@ of %@ left";
15199+
"Gift.Auction.Join" = "Join Auction";
15200+
"Gift.Auction.TimeLeftHours" = "{h}h {m}m left";
15201+
"Gift.Auction.TimeLeftMinutes" = "{m}:{s} left";
15202+
"Gift.Auction.ItemsBought_1" = "item bought";
15203+
"Gift.Auction.ItemsBought_any" = "items bought";
15204+
"Gift.Auction.ForSaleOnTelegram" = "for sale on Telegram";
15205+
"Gift.Auction.ForSaleOnFragment" = "for sale on Fragment";
15206+
"Gift.Auction.AveragePriceInfo" = "**%1$@** is the average sale price for %2$@ gifts.";
15207+
"Gift.Auction.Stars_1" = "%@ Star";
15208+
"Gift.Auction.Stars_any" = "%@ Stars";
15209+
15210+
"Gift.AuctionBid.Title" = "Place a Bid";
15211+
"Gift.AuctionBid.MinimumBid" = "minimum bid";
15212+
"Gift.AuctionBid.UntilNext" = "until next round";
15213+
"Gift.AuctionBid.Left" = "left";
15214+
"Gift.AuctionBid.YourBid" = "your bid";
15215+
"Gift.AuctionBid.Winning" = "You're winning";
15216+
"Gift.AuctionBid.Outbid" = "You've been outbid";
15217+
"Gift.AuctionBid.BidPreview" = "Your bid will be";
15218+
"Gift.AuctionBid.TopWinners" = "Top 3 Winners";
15219+
"Gift.AuctionBid.PlaceBid" = "Place a %@ Bid";
15220+
"Gift.AuctionBid.AddToBid" = "Add %@ to Your Bid";
15221+
"Gift.AuctionBid.Placed.Title" = "Your bid has been placed";
15222+
"Gift.AuctionBid.Placed.Text" = "If you fall below the top %@, your bid will roll over to the next drop.";
15223+
"Gift.AuctionBid.Increased.Title" = "Your bid has been increased";
15224+
"Gift.AuctionBid.Increased.Text" = "If you fall below the top %@, your bid will roll over to the next drop.";
15225+
"Gift.AuctionBid.AddMoreStars" = "Add at least %@ to increase your bid.";
15226+
"Gift.AuctionBid.AddMoreStars.Stars_1" = "%@ Star";
15227+
"Gift.AuctionBid.AddMoreStars.Stars_any" = "%@ Stars";
15228+
"Gift.AuctionBid.Top" = "TOP %@";
15229+
"Gift.AuctionBid.Custom" = "Custom";
15230+
15231+
"Gift.AuctionBid.CustomBid.Title" = "Place a Custom Bid";
15232+
"Gift.AuctionBid.CustomBid.Text" = "If you fall below the top %@, your bid will roll over to the next drop.";
15233+
"Gift.AuctionBid.CustomBid.Placeholder" = "Amount";
15234+
"Gift.AuctionBid.CustomBid.Done" = "Place a Bid";
15235+
15236+
"Gift.Auction.Context.About" = "About";
15237+
"Gift.Auction.Context.CopyLink" = "Copy Link";
15238+
"Gift.Auction.Context.Share" = "Share";
15239+
15240+
"Gift.ActiveAuctions.Title_1" = "%@ Active Auction";
15241+
"Gift.ActiveAuctions.Title_any" = "%@ Active Auctions";
15242+
"Gift.ActiveAuctions.Round" = "Round %@ of %@";
15243+
"Gift.ActiveAuctions.Winning" = "Your bid **%@** is ranked **#%@**";
15244+
"Gift.ActiveAuctions.Outbid" = "Your bid **%@** is outbid";
15245+
"Gift.ActiveAuctions.RaiseBid" = "Raise Bid";
15246+
15247+
"Gift.Acquired.Title_1" = "%@ Item Bought";
15248+
"Gift.Acquired.Title_any" = "%@ Items Bought";
15249+
"Gift.Acquired.Round" = "Round #%@";
15250+
"Gift.Acquired.Recipient" = "Recipient";
15251+
"Gift.Acquired.Date" = "Date";
15252+
"Gift.Acquired.AcceptedBid" = "Accepted Bid";
15253+
"Gift.Acquired.Top" = "TOP %@";
15254+
15255+
"Gift.Options.Gift.Auction" = "auction";
15256+
15257+
"Story.Camera.Live" = "Live";
15258+
15259+
"Chat.Auction" = "Gift Auction";
15260+
"Chat.Auction.ViewResults" = "VIEW RESULTS";
15261+
"Chat.Auction.Join" = "JOIN";
15262+
"Chat.Auction.Finished" = "finished";
15263+
"Chat.Auction.Gifts_1" = "%@ gift";
15264+
"Chat.Auction.Gifts_any" = "%@ gifts";
15265+
15266+
"Story.Privacy.StartLiveAs" = "Start Live As";
15267+
15268+
"ChatList.Auctions.ActiveAuction_1" = "Active Auction";
15269+
"ChatList.Auctions.ActiveAuction_any" = "%@ Active Auctions";
15270+
"ChatList.Auctions.Status.Single.Winning" = "You're winning (%@ place).";
15271+
"ChatList.Auctions.Status.Single.PlaceFirst" = "%@st";
15272+
"ChatList.Auctions.Status.Single.PlaceSecond" = "%@nd";
15273+
"ChatList.Auctions.Status.Single.PlaceThird" = "%@rd";
15274+
"ChatList.Auctions.Status.Single.PlaceNTh" = "%@th";
15275+
"ChatList.Auctions.Status.Single.Outbid" = "You've been outbid.";
15276+
"ChatList.Auctions.Status.Many.WinningAll" = "You're winning all of them.";
15277+
"ChatList.Auctions.Status.Many.Outbid_1" = "You've been outbid in %@ of them.";
15278+
"ChatList.Auctions.Status.Many.Outbid_any" = "You've been outbid in %@ of them.";
15279+
"ChatList.Auctions.Status.Many.OutbidAll" = "You've been outbid in all of them.";
15280+
"ChatList.Auctions.View" = "View";
15281+
15282+
"Gift.Auction.Info.Title" = "Auction";
15283+
"Gift.Auction.Info.Description" = "Join the battle for exclusive gifts.";
15284+
15285+
"Gift.Auction.Info.TopBidders.Title_1" = "Top %@ Bidder";
15286+
"Gift.Auction.Info.TopBidders.Title_any" = "Top %@ Bidders";
15287+
"Gift.Auction.Info.TopBidders.Text" = "%@ are dropped in %@ to the top %@ by bid amount.";
15288+
"Gift.Auction.Info.TopBidders.Gifts_1" = "%@ gift";
15289+
"Gift.Auction.Info.TopBidders.Gifts_any" = "%@ gifts";
15290+
"Gift.Auction.Info.TopBidders.Rounds_1" = "%@ round";
15291+
"Gift.Auction.Info.TopBidders.Rounds_any" = "%@ rounds";
15292+
"Gift.Auction.Info.TopBidders.Bidders_1" = "%@ bidder";
15293+
"Gift.Auction.Info.TopBidders.Bidders_any" = "%@ bidders";
15294+
15295+
"Gift.Auction.Info.Carryover.Title" = "Bid Carryover";
15296+
"Gift.Auction.Info.Carryover.Text" = "If your bid leaves the top %@, it will automatically join the next drop.";
15297+
15298+
"Gift.Auction.Info.Missed.Title" = "Missed Bidders";
15299+
"Gift.Auction.Info.Missed.Text" = "If your bid doesn't win after the final drop, your Stars will be fully refunded.";
15300+
15301+
"Gift.Auction.Info.Understood" = "Understood";
15302+
15303+
"Location.SendLocation" = "Send Location";
15304+
15305+
"Camera.LiveStream.Change" = "change";
15306+
"Camera.LiveStream.StartLiveStream" = "Start Live Stream";
15307+
15308+
"Camera.LiveStream.End" = "End";
15309+
"Camera.LiveStream.End.Title" = "End Live Stream";
15310+
"Camera.LiveStream.End.Text" = "Are you sure you want to end this live stream?";
15311+
"Camera.LiveStream.End.End" = "End";
15312+
"Camera.LiveStream.End.Leave" = "Leave";
15313+
15314+
"Message.RepeatAt" = "%1$@ at %2$@";
15315+
"Message.RepeatPeriod.Daily" = "daily";
15316+
"Message.RepeatPeriod.Weekly" = "weekly";
15317+
"Message.RepeatPeriod.Biweekly" = "biweekly";
15318+
"Message.RepeatPeriod.Monthly" = "monthly";
15319+
"Message.RepeatPeriod.3Months" = "every 3 months";
15320+
"Message.RepeatPeriod.6Months" = "every 6 months";
15321+
"Message.RepeatPeriod.Yearly" = "yearly";
15322+
"Message.Approximate" = "appx. %@";
15323+
15324+
"LiveStreamSettings.Title" = "Live Settings";
15325+
"LiveStreamSettings.TitleEdit" = "Live Stream";
15326+
"LiveStreamSettings.StartLiveAs" = "START LIVE AS";
15327+
"LiveStreamSettings.WhoCanView" = "WHO CAN VIEW THIS LIVE";
15328+
"LiveStreamSettings.WhoCanViewInfo" = "[Select people]() who won't see your live.";
15329+
"LiveStreamSettings.ConnectStream" = "Connect Stream";
15330+
"LiveStreamSettings.ConnectStreamInfo" = "Stream with a different app.";
15331+
"LiveStreamSettings.AllowComments" = "Allow Comments";
15332+
"LiveStreamSettings.AllowScreenshots" = "Allow Screenshots";
15333+
"LiveStreamSettings.PricePerComment" = "PRICE PER COMMENT";
15334+
"LiveStreamSettings.PricePerCommentInfo" = "The price a viewer must pay to send a comment.";
15335+
"LiveStreamSettings.PricePerComment.Free" = "Free";
15336+
"LiveStreamSettings.PricePerComment.Stars_1" = "%@ Star";
15337+
"LiveStreamSettings.PricePerComment.Stars_any" = "%@ Stars";
15338+
"LiveStreamSettings.SaveSettings" = "Save Settings";
15339+
15340+
"AddContact.Title" = "New Contact";
15341+
"AddContact.PhoneNumber.IsContact"= "This phone number is already in your contacts. [View >]()";
15342+
"AddContact.PhoneNumber.Registered"= "This phone number is on Telegram.";
15343+
"AddContact.PhoneNumber.NotRegistered"= "This phone number is not on Telegram. [Invite >]()";
15344+
"AddContact.SyncToPhone" = "Sync Contact to Phone";
15345+
"AddContact.NotePlaceholder" = "Add notes only visible to you";
15346+
"AddContact.AddQR" = "Add via QR Code";
15347+
15348+
"ScheduleMessage.Time" = "Time";
15349+
"ScheduleMessage.Repeat" = "Repeat";
15350+
"ScheduleMessage.RepeatPeriod.Never" = "Never";
15351+
"ScheduleMessage.RepeatPeriod.Daily" = "Daily";
15352+
"ScheduleMessage.RepeatPeriod.Weekly" = "Weekly";
15353+
"ScheduleMessage.RepeatPeriod.Biweekly" = "Biweekly";
15354+
"ScheduleMessage.RepeatPeriod.Monthly" = "Monthly";
15355+
"ScheduleMessage.RepeatPeriod.3Months" = "Every 3 Months";
15356+
"ScheduleMessage.RepeatPeriod.6Months" = "Every 6 Months";
15357+
"ScheduleMessage.RepeatPeriod.Yearly" = "Yearly";
15358+
15359+
"ScheduleMessage.PremiumRequired.Title" = "Premium Required";
15360+
"ScheduleMessage.PremiumRequired.Text" = "Subscribe to **Telegram Premium** to schedule repeating messages.";
15361+
"ScheduleMessage.PremiumRequired.Add" = "Add";
15362+
15363+
"Stars.Transaction.GiftAuctionBid" = "Gift Auction Bid";
15364+
"Stars.Intro.Transaction.GiftAuctionBid" = "Gift Auction Bid";
15365+
15366+
"Stars.Intro.Transaction.LiveStreamReaction" = "Live Stream Reaction";
15367+
"Stars.Transaction.LiveStreamReaction" = "Live Stream Reaction";
15368+
"Stars.Transaction.LiveStreamReaction.Text" = "You receive **%@%** of the amount of each reaction.";
15369+
15370+
"Stars.Intro.Transaction.LiveStreamPaidMessage_1" = "Fee for %@ Live Stream Message";
15371+
"Stars.Intro.Transaction.LiveStreamPaidMessage_any" = "Fee for %@ Live Stream Messages";
15372+
"Stars.Transaction.LiveStreamPaidMessage_1" = "Fee for %@ Live Stream Message";
15373+
"Stars.Transaction.LiveStreamPaidMessage_any" = "Fee for %@ Live Stream Messages";
15374+
"Stars.Transaction.LiveStreamPaidMessage.Text" = "You receive **%@%** of the price that you charge for each incoming message.";
15375+
15376+
"Notification.StarGift.Subtitle.NoConvert" = "Display this gift on your page and turn it into a collectible.";
15377+
"Notification.StarGift.Subtitle.OtherNoConvert" = "Display this gift on your page and turn it into a collectible.";
15378+
"Gift.View.NoConvertDescription" = "We will notify you once it becomes eligible for unique upgrades.";
15379+
"Gift.View.OtherNoConvertDescription" = "We will notify %1$@ once it becomes eligible for unique upgrades.";
15380+
15381+
"Gift.AuctionTransfer.Title" = "Change Recipient";
15382+
"Gift.AuctionTransfer.Text" = "The current recipient of this gift is **%@**. Change to **%@**?";
15383+
"Gift.AuctionTransfer.TextFromYourself" = "The current recipient of this gift is you. Change to **%@**?";
15384+
"Gift.AuctionTransfer.TextToYourself" = "The current recipient of this gift is **%@**. Change to yourself?";
15385+
"Gift.AuctionTransfer.Change" = "Change";
15386+
15387+
"Story.LiveBadge" = "LIVE";
15388+
"SendStarReactions.LiveStreamPerk1Title" = "pin in chat";
15389+
"SendStarReactions.LiveStreamPerk2Title" = "characters";
15390+
"SendStarReactions.LiveStreamPerk3Title" = "emoji";
15391+
"SendStarReactions.LiveStreamMessageTitle" = "Highlight and Pin";
15392+
"SendStarReactions.LiveStreamReactionText" = "Highlight and pin a message\nby adding Stars for **%@**";
15393+
"SendStarReactions.LiveStreamMessageText" = "Highlight and pin a message\nby adding Stars for **%@**";
15394+
"SendStarReactions.OwnLiveStreamCloseButton" = "Close";
15395+
"SendStarReactions.OwnLiveStreamInfoText" = "You can't send star reactions to own story.";
15396+
"SendStarReactions.LiveStreamActionButton" = "Add # %@";
15397+
15398+
"LiveStream.CommentsDisabledPlaceholder" = "Comments disabled";
15399+
"LiveStream.LoadingStatus" = "loading...";
15400+
"LiveStream.StoryViewerEmpty" = "no viewers";
15401+
"LiveStream.StoryViewerCount_1" = "1 watching";
15402+
"LiveStream.StoryViewerCount_any" = "%@ watching";
15403+
15404+
"LiveStream.InputPlaceholder" = "Comment";
15405+
15406+
"Story.ContextMenuPip" = "Minimize";
15407+
"Story.ContextMenuLiveSettings" = "Live Settings";
15408+
15409+
"LiveStream.InputContextMenuAddStars" = "Add Stars";
15410+
"LiveStream.InputContextMenuEditStars" = "Edit Stars";
15411+
"LiveStream.InputContextMenuRemoveStars" = "Remove Stars";
15412+
15413+
"Reminders.DeleteRepeatingTitle" = "Delete Repeating Reminder";
15414+
"Reminders.DeleteRepeatingText" = "Are you sure you want to delete this reminder? This is a repeating reminder.";
15415+
"Reminders.DeleteRepeatingActionSingle" = "Delete This Reminder Only";
15416+
"Reminders.DeleteRepeatingActionMultiple" = "Delete All Future Reminders";
15417+
15418+
"ScheduledMessages.DeleteRepeatingTitle" = "Delete Repeating Message";
15419+
"ScheduledMessages.DeleteRepeatingText" = "Are you sure you want to delete this scheduled message? This is a repeating message.";
15420+
"ScheduledMessages.DeleteRepeatingActionSingle" = "Delete This Message Only";
15421+
"ScheduledMessages.DeleteRepeatingActionMultiple" = "Delete All Future Messages";
15422+
15423+
"ChatList.AlertResumeLiveStreamTitle" = "Resume Live Stream";
15424+
"ChatList.AlertResumeLiveStreamText" = "Do you want to resume an existing Live Stream?";
15425+
"ChatList.AlertResumeLiveStreamAction" = "Resume";

build-system/Make/RemoteBuild.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,20 @@ def import_module_from_file(module_name, file_path):
2525

2626

2727
def session_scp_upload(session, source_path, destination_path):
28-
scp_command = 'scp -i {privateKeyPath} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -pr {source_path} containerhost@"{ipAddress}":{destination_path}'.format(
28+
print('Using ssh private key path {}'.format(session.private_key_path))
29+
scp_command = 'scp -v -i {privateKeyPath} -o LogLevel=VERBOSE -o BatchMode=yes -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null -pr {source_path} containerhost@"{ipAddress}":{destination_path}'.format(
2930
privateKeyPath=session.private_key_path,
3031
ipAddress=session.ip_address,
3132
source_path=shlex.quote(source_path),
3233
destination_path=shlex.quote(destination_path)
3334
)
35+
print('Running: {}'.format(scp_command))
3436
if os.system(scp_command) != 0:
3537
print('Command {} finished with a non-zero status'.format(scp_command))
3638

3739

3840
def session_scp_download(session, source_path, destination_path):
39-
scp_command = 'scp -i {privateKeyPath} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -pr containerhost@"{ipAddress}":{source_path} {destination_path}'.format(
41+
scp_command = 'scp -i {privateKeyPath} -o LogLevel=ERROR -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null -pr containerhost@"{ipAddress}":{source_path} {destination_path}'.format(
4042
privateKeyPath=session.private_key_path,
4143
ipAddress=session.ip_address,
4244
source_path=shlex.quote(source_path),
@@ -47,7 +49,7 @@ def session_scp_download(session, source_path, destination_path):
4749

4850

4951
def session_ssh(session, command):
50-
ssh_command = 'ssh -i {privateKeyPath} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null containerhost@"{ipAddress}" -o ServerAliveInterval=60 -t "{command}"'.format(
52+
ssh_command = 'ssh -i {privateKeyPath} -o LogLevel=ERROR -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null containerhost@"{ipAddress}" -o ServerAliveInterval=60 -t "{command}"'.format(
5153
privateKeyPath=session.private_key_path,
5254
ipAddress=session.ip_address,
5355
command=command
@@ -105,7 +107,7 @@ def remote_build_darwin_containers(darwin_containers_path, darwin_containers_hos
105107

106108
def handle_ssh_credentials(credentials):
107109
with DarwinContainers.ContainerSession(credentials=credentials) as session:
108-
print('Uploading data to container...')
110+
print('Uploading data to container {}...'.format(session.ip_address))
109111

110112
session_scp_upload(session=session, source_path=build_input_data_path, destination_path='telegram-build-input')
111113
session_scp_upload(session=session, source_path='{base_dir}/{buildbox_dir}/transient-data/source.tar'.format(base_dir=base_dir, buildbox_dir=buildbox_dir), destination_path='')

0 commit comments

Comments
 (0)