Giter Club home page Giter Club logo

Comments (8)

marcrasi avatar marcrasi commented on September 15, 2024

Interestingly, a lot of the other completion tests (`test/IDE/complete_*`) have leaks detected by LSAN even at commit 482d062. So maybe there were already some completion-related leaks, and then PR26403 added even more?

from swift-syntax.

marcrasi avatar marcrasi commented on September 15, 2024

@rintaro have you made any progress on this? It's currently blocking some work on a Google-internal SourceKit deployment that I'm working on. Would it maybe be possible to roll back the PR?

from swift-syntax.

rintaro avatar rintaro commented on September 15, 2024

@marcrasi Sorry for being late.
swiftlang/swift#26664 fixes leak in IDE/complete_repl_identifier_prefix_1.swift which is introduced by swiftlang/swift#26403

Interestingly, a lot of the other completion tests (`test/IDE/complete_*`) have leaks detected by LSAN even at commit 482d062. So maybe there were already some completion-related leaks, and then PR26403 added even more?

Right. I'm still fixing existing leaks.

from swift-syntax.

marcrasi avatar marcrasi commented on September 15, 2024

Awesome, I just verified that swiftlang/swift#26664 fixes the issue in the Google-internal SourceKit too! Thanks 🙂

from swift-syntax.

marcrasi avatar marcrasi commented on September 15, 2024

Do you think it would be possible to configure the LSAN CI job to run some SourceKit completion tests, to catch regressions earlier? Looks like that job currently doesn't run any tests (https://github.com/apple/swift/blob/1afd0f7cf757ba6b12d2af0d151eafb022acf439/utils/build-presets.ini#L1084), I guess because a lot of them leak so the job would just fail. Maybe we could configure it to run a whitelisted subset of tests under LSAN and slowly whitelist more tests as more leaks get fixed.

I'd be happy to look into this if you think it's a good idea.

from swift-syntax.

rintaro avatar rintaro commented on September 15, 2024

I think that's great idea. Could you file another JIRA issue for that?
CC: @shahmishal

from swift-syntax.

marcrasi avatar marcrasi commented on September 15, 2024

Filed https://bugs.swift.org/browse/SR-11313 !

from swift-syntax.

rintaro avatar rintaro commented on September 15, 2024

Merged swiftlang/swift#26664

from swift-syntax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.